What if I want to unlock multiple fields with the password? What’s the syntax for that? Something like this, perhaps? var cResponse = app.response({cQuestion: "Enter the password", cTitle: "PASSWORD", });
{
// Cancel
if (cResponse == null) {app.alert({cMsg: "You must enter your password to unlock these fields.", cTitle: "PASSWORD", nIcon: 3});}
// if password is correct
else if (cResponse == "123456") {
this.getField("LockedField1").readonly = false;
this.getField("LockedField2").readonly = false;
this.getField("LockedField3").readonly = false;
}
// if password is incorrect
else {app.alert({cMsg: "Invalid password.", cTitle: "PASSWORD", nIcon: 0});}
}
... View more