isDatabaseLocked
To return Yes (true) if the database is locked
This function helps you find if the edit mode needs a password to be enabled and if it is already entered... or not.
If the function returns No (
false
), the password was already entered, or if the database is not password protected. isDatabaseLocked()
boolean
1
isDatabaseLocked()
Result: No (
false
) if the database is not protected by a password or if the admin entered the password already1
if isDatabaseLocked() then
2
"Activate the edit mode by entering the password!"
3
end
Add the above script in a formula field and you'll get the following result.
Result:

This is how it will be displayed
(if the edit mode in a database is password protected and the password wasn't entered yet)
Last modified 10mo ago