To return Yes (true) if a password is needed to enable edit mode
Check if enabling edit mode in a database requires a password.
isDatabaseProtected()
boolean
Result: Yes (true
) if the database is protected by a password
Add the above script in a formula field and you'll get the following result.
Result: The edit mode requires a password! (if the edit mode in a database is password protected)
isDatabaseLocked
, which returns Yes (true
) if the database is locked.