Copy link to clipboard
Copied
I have a drop-down menu with 5 selections. Below I have 5 separate text boxes. I would like to make it so that if you select #1 in the drop-down it will turn text box 1 yellow. If you select #2 in the drop-down menu, it turns text box #2 blue and box 1 goes back to transparent.
Copy link to clipboard
Copied
Use this as 'Validation' script of dropdown field (change field names and dropdown choices to your actual field name and choices):
this.getField("Text1").fillColor = event.value == "Choice1" ? color.yellow : color.transparent;
this.getField("Text2").fillColor = event.value == "Choice2" ? color.blue : color.transparent;
Find more inspiration, events, and resources on the new Adobe Community
Explore Now