Skip to main content
Participant
May 6, 2020
Question

Selected Boxes change colour

  • May 6, 2020
  • 1 reply
  • 213 views

Hi there,

Is there a way to change the colour of tick boxes or text boxes once written in or selected on a form?

 

Thanks

This topic has been closed for replies.

1 reply

try67
Community Expert
Community Expert
May 6, 2020

Yes. As the field's On Focus event enter the following JavaScript code:

event.target.fillColor = color.yellow;

And as its On Blur event enter this:

event.target.fillColor = color.white;