Can I restrict entries to my Form only from the admin user. If yes, how?

Can I restrict entries to my Form only from the admin user. If yes, how?

Yes, you can restrict entries only from the admin user. In the following code, Added_User stores the name of the user who added the current record and zoho.adminuser returns the name of the admin user. If the added user name is not equal to the admin user name, the record will not be added. The code is added on add -> validate block of the Script tab.

            if (input.Added_User  !=  zoho.adminuser)
{
alert "You are not authorized to add records";
cancel submit;
}

Note:

Zoho Creator automatically tracks details about when and by whom a record was added or modified using the fields Added User, Added Time, Modified User and Modified Time. This information will be displayed in the view, if the columns are selected from Column Properties option of the View tab in Edit mode.  Refer the topic, Display User name and time, for more information.


    • Related Articles

    • How can I restrict entries to my Registration Form based on a given date?

      Assume you have a Registration form to register for a specific course and the registration is open till 30th Dec 2009. To restrict entries from being submitted after this date, use the zoho.currentdate variable within the on add -> on validate block ...
    • 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 ...
    • How can I restrict entries to my Form only from registered members?

      The count function in Deluge Scripting enables you to count the number of records in a Form (table) that satisfies the given criteria. Using the count function, you can check if an entry already exists in a database. Let us illustrate this with the ...
    • Form Restrictions

      Form Restrictions To restrict the accessibility of your form, navigate to  Settings >> Form Span.  Here, you can allow your form to be accessed only between certain period and dates, restrict number of submissions, etc.  Restrict by Date & Time To ...
    • Admin Console

      1. What is the Admin Console?  The Admin Console in Zoho ShowTime is the control center for you (the admin) to manage your subscription plan, manage your team members, design your organization profile, and track your organization's performance. 2. ...