Show/hide multiple fields if checkbox is activated
Hi,hopefully it is an easy one... when you click the checkbox, it allows you to fill the other fields...
many thanks!!
Hi,hopefully it is an easy one... when you click the checkbox, it allows you to fill the other fields...
many thanks!!
You can use something like this as the field's Mouse Up action:
var fields = ["Field1", "Field2", "Field3"]; // etc.
if (event.target.value=="Off") {
this.resetForm(fields);
for (var i in fields) this.getField(fields).readonly = true;
} else {
for (var i in fields) this.getField(fields).readonly = false;
}
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.