A user can be identified, using the Deluge variable zoho.loginuser, which returns the name of the user who has logged in to the application. The Deluge variable zoho.adminuser returns the name of the application owner. Sometimes may want to restrict access to certain users only to specific fields in your form. This can be achieved using the Hide <fieldname> deluge statement, within a If condition.
For example, the following on edit -> on load script given below will restrict access to all your shared users to edit only specific fields in your form. The script will be executed when a form is loaded for editing . The If statements will be executed if the login user is not the admin user. You can also use the disable <fieldname> Deluge statement, which disables a field in the form.
on edit
{
on load
{
if (zoho.loginuser != zoho.adminuser)
{
hide Company;
hide First_Name;
hide Last_Name;
hide Cell_Phone_Number;
hide Email_Address;
}
}
}