Copy link to clipboard
Copied
I have a read only field, I want to turn off the read only with a checkbox, or if a field is populated.
Ideas?
Thanks
Copy link to clipboard
Copied
As the custom validation script of that text field enter the following code:
this.getField("Name of field").readonly = (event.value!="");
Copy link to clipboard
Copied
What do you mean by "or if a field is populated"?
Copy link to clipboard
Copied
Meaning, If I enter text into a text box, another text box has read only turned off.
Copy link to clipboard
Copied
Which one is it, then? What a check-box is ticked, or when another text field has a value in it?
Copy link to clipboard
Copied
Text field, I figure I can modify it if I use a checkbox, I may use both, form is still being designed.
Copy link to clipboard
Copied
Well, it requires a different approach if you want to do it with a text field, a check-box, or a combination of the two, so please decide and let us know how you want it to work.
Copy link to clipboard
Copied
Thank you. A text box please.
Copy link to clipboard
Copied
As the custom validation script of that text field enter the following code:
this.getField("Name of field").readonly = (event.value!="");