How to restrict certain users from viewing all the fields in my form?
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;
}
}
}
Related Articles
Can I restrict the reports only to certain selected users?
Yes. You can restrict the reports only to certain selected users, roles, or groups. You can do so by creating a Report Folder and giving access to the users, roles, or groups. Follow the steps given below to create a report folder with restricted ...
Can I hide tabs from certain users?
Yes, you can hide the tabs from certain users or modules. Here is how you can do it: Click Setup > Users and Control > Security Control. Select the profile you want to hide certain tabs for. To hide tabs from users, simply deselect the particular ...
Marking Personal Fields
GDPR defines personal data as any information relating to an identified or identifiable natural person (i.e. the data subject). There is a wide range of personal data that includes email addresses, location, mobile numbers, identification numbers, ...
Registration Form for Guest Users and Customer Portal Users
Super admins and admins can view and edit this information. Managers can only view this information. Staff members will not have access to this information. When customers book appointments, they are required to specify details like their name, ...
Custom Buttons and Fields
Modules and Fields are the building blocks on which all recruitment activities are based. They allow you to collect, organize, and analyse a wide range of candidate and client information. Zoho Recruit comes with a standard range of predefined ...