Copy link to clipboard
Copied
I have a button that when clicking it it will Prompt for a password, once the password entered correctly this action should be taken
-Lock different Fields
-Hide the button
-Display Text
the fields locks successfuly others are not
switch (resp) {
case pw:
getField(f_prefix).readonly = readonly;
getField(f_prefix2).readonly = readonly;
getField(f_prefix3).readonly = readonly;
app.alert("The fields are now " + readonly_desc + "ed.", 3);
Button1.style.display = display.hidden; //hide button
PartG.IA.Text1.style.display = display.visible; //Show Signuture
break;
case null: // User pressed Cancel button
break;
default: // Incorrect password
app.alert("Incorrect password.", 1);
break;
}
})();
Copy link to clipboard
Copied
Look at the Javascript console for errors.