Skip to main content
Participant
October 3, 2016
Question

Hi, changing fill color

  • October 3, 2016
  • 3 replies
  • 393 views

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?

This topic has been closed for replies.

3 replies

try67
Community Expert
Community Expert
October 3, 2016

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.

try67
Community Expert
Community Expert
October 3, 2016

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;

Participant
October 3, 2016

Thank you so much. It's working