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"
}
}