Copy link to clipboard
Copied
Hi All,
I have a form that I'm having some trouble with.
I have 3 text boxes:
Text8.1.1
Text8.1.0
Text8.2.0
I want to disable them (gray them out) making them unable to be edited unless Check Box18 is checked.
If Check Box 18 becomes checked, I want them to become fillable.
Any help??
Copy link to clipboard
Copied
If by 'grey them out' you mean to set them to read only or editable, you can use this code as Mouse UP event of checkbox field :
this.getField("Text8.1.1").readonly = event.target.value == "Off" ? true : false;
this.getField("Text8.1.0").readonly = event.target.value == "Off" ? true : false;
this.getField("Text8.2.0").readonly = event.target.value == "Off" ? true : false;