Copy link to clipboard
Copied
I have a form that is displaying two options, and I need to make it more obvious which one they are selecting. So if they select option A (box) I need text field A to have a border color. If they select checkbox B, I need text field B to have the border color. I've tried running mouseup actions on the boxes but I must be doing something wrong. I am still learning JS..
Thanks!
This MouseUp code will work for a single check box highlighting a field named TextA
if(event.target.value != "Off")
this.getField("TextA").lineWidth = 1;
else
this.getField("TextA").lineWidth = 0;
For this to work the border color must already be set. Change the field name to use on another checkbox
Copy link to clipboard
Copied
This MouseUp code will work for a single check box highlighting a field named TextA
if(event.target.value != "Off")
this.getField("TextA").lineWidth = 1;
else
this.getField("TextA").lineWidth = 0;
For this to work the border color must already be set. Change the field name to use on another checkbox
Copy link to clipboard
Copied
You're the best. Thank you for all your help!
Copy link to clipboard
Copied
What code and where did you place the code in the box?
Are you using check boxes?
If so, then you need to code both check boxes.
Are you using a drop down or list box?