Button to lock and unlock all form fields
Hello I created a button to lock all fields once pressed with the script. When I press it nothing happens.
// Lock all fields in the form
var allFields = this.getFieldNames();
for (var i = 0; i < allFields.length; i++) {
this.getField(allFields[i]).readonly = true;
}
Can someone help.? I would also need to unlock to make edits.
Thank you.
