Set offValue to object?

Hello,

I believe there’s still work to do/being done on Setting an initial value of a parameter when using objects as a value, but I was thinking that I could set an offValue as an object, but when trying it out, it didn’t seem to achieve the intended effect. I’m not sure if my syntax is wrong or if it’s not supported. Any thoughts on this parameter JSON?

{
    "cat" : {
      "label": "Category Type",
      "type": "choose",
      "options": [
        {
          "value": {
            "color": "#a6380a",
            "title": "Foundations for Victory"
          },
          "label": "Foundations"
        },
        {
          "value": {
            "color": "#f26321",
            "title": "Areas of Restoration"
          },
          "label": "Restoration"
        }
      ],
      "offValue": [
        {
        "value": {
          "color": "#00ff00",
          "title": "Please select"
        	}
      	}
      ]
    },
    "title" : {
      "type" : "text",
      "label" : "Page Title",
      "initial" : "{{dc:post:title}}"
    },
    "bg" : {
      "type" : "image",
      "label" : "Background Image",
      "initial" : "3952:full"
  }
}

It isn’t setup to have objects with offValue. We can change that. I think you mean to use something similar to this for your offValue to match your other objects, but it wouldn’t work even with that fixed. Have a great week!

      "offValue":  {
        "color": "#00ff00",
        "title": "Please select"
      }

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.