Copy link to clipboard
Copied
I have read the available information for if/then statements, and it seems they are all regarding calculations..
I am here to see if there is a way to do "if this checkbox is selected, then allow this text field to be filled out" or even "if this text field has text entered, then allow this text field to be filled out"..
Copy link to clipboard
Copied
Place this as a mouse up action in the checkbox:
if (event.target.value != "Off") {this.getField("TEXTFIELDNAME").readonly = false;}
else {
this.getField("TEXTFIELDNAME").readonly = true;
this.getField("TEXTFIELDNAME").value = this.getField("TEXTFIELDNAME").defaultValue;
}
Copy link to clipboard
Copied
Place this as a mouse up action in the checkbox:
if (event.target.value != "Off") {this.getField("TEXTFIELDNAME").readonly = false;}
else {
this.getField("TEXTFIELDNAME").readonly = true;
this.getField("TEXTFIELDNAME").value = this.getField("TEXTFIELDNAME").defaultValue;
}
Copy link to clipboard
Copied
JR Boulay beat me to the answer by 20 seconds. 🙂