I am trying to incorporate Pauls lock all script and Nials password protected access when a button is clicked.
Is there a way to have that lock all button/script only work when the password entered is correct? Also a way to unlock it by someone who has a password?
Solved! Go to Solution.
Views
Replies
Total Likes
Views
Replies
Total Likes
.. I'll work up an example...
Views
Replies
Total Likes
Yes, you would just add the code for the lock script to the script that checks if the password is correct.
And the same for unlocking, you would have to modify the lock script changing everywhere that it says "readOnly" to "open".
If you want this to happen all on the same button you would need a check to see if the form had been locked. So you could check a field on the form to see if it has been set to readOnly or not.
In pseudo-code:
if (password == true && fieldName.access == "open") {
put lock script here
}
else if (password == true && fieldName.access == "readOnly") {
put unlock script here
}
Views
Replies
Total Likes
Wow thank you so much, thats exactly what I was looking for!
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies
Views
Likes
Replies