Copy link to clipboard
Copied
I'm working for a time schedule, what I need is if they choose the time 8am-2pm and click the text box with contains of that schedule all I want to have a color on that text box, let say yellow. Also if they want to unchoose it and change the time schedule the color will be back on white. Is that possible?
Copy link to clipboard
Copied
Yes, but you need to better describe how you want it to work, exactly. Also, it's not clear on whether this is a text field or a drop-down field, and what field(s) you want to color based on the time selection.
Copy link to clipboard
Copied
After seeing the file in question, the solution was to use this code as the MouseUp event of the field:
event.target.fillColor = (color.equal(event.target.fillColor, color.transparent)) ? color.yellow : color.transparent;
Copy link to clipboard
Copied
Thank you so much. It's working
Find more inspiration, events, and resources on the new Adobe Community
Explore Now