Search…
Resources
Related Links
isDatabaseLocked
To return "Yes" if the database is locked
This function helps you to find if the edit mode needs a password to be activated and if it is already entered ... or not.
If the function returns "No", the password was already entered, or if the database is not password protected.

Syntax

isDatabaseLocked()

Return

boolean

Examples

isDatabaseLocked()
Result: No (if the database is not protected by a password or if the admin entered the password already)
if isDatabaseLocked() then
"Activate the edit mode by entering the password!"
end
Add the above script in a formula field and you'll get the following result.
Result: Activate the edit mode by entering the password! (if the edit mode in a database is password protected and the password wasn't entered yet)

See also

isDatabaseProtected, which returns "Yes" if the database is protected by a password.
Export as PDF
Copy link