0

isAdminMode

To return Yes (true) if the edit mode is active

With this function, you'll find out if the current user is in edit mode, i.e. the wrench icon is activated (red).

❗Caution: This function runs only on the client side and doesn't interact with the host server. It cannot affect server-side calculations like the Creatable if and Deletable if restrictions. This applies to the web app (app.ninox.com), while native apps (iPhone, iPad, Mac, Android) run scripts client-side and sync with the server afterward.

Syntax

isAdminMode()

Return

boolean

Example

isAdminMode()

Result: Yes (true) if you activated the wrench icon to edit your database

See also

isDatabaseLocked which returns Yes (true) if the database is locked.

isDatabaseProtected which returns Yes (true) if the database is protected by a password.

userIsAdmin which returns Yes (true) if the current user has the admin role.

Reply

null