Hello.
We have these parameters:
"img_grp" : {
"type": "group",
"label" : "Image Options",
"params" : {
"overlay_color" : {
"type" : "choose",
"label" : "Color Overlay",
"initial" : "rgba(24, 142, 206, 0.84)",
"options" : [
{ "value" : "rgba(24, 142, 206, 0.84)", "label" : "Blue" },
{ "value" : "rgba(255, 255, 255, 0.8)", "label" : "White" },
{ "value" : "other", "label" : "Other" }
]
},
"overlay_color_custom" : {
"type" : "color",
"label" : "Custom Color",
"initial" : "rgba(24, 142, 206, 0.84)",
"when" : "eq(overlay_color, 'other')"
}
}
}
To use one of the ‘preset’ color options, we’d set {{dc:p:img_grp.overlay_color}} as the value for the color picker in the Primary tab. This is fully functional.
Our issue at hand:
How might we dynamically determine IF there is a ‘other’ option and use the value of {{dc:p:img_grp.overlay_color_custom}}?