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

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 of the Script tab, to validate if the registration date has expired.  The sample code is given below.

          if (zoho.currentdate > '20-Mar-2008')
{
alert "time for registration expired";
cancel submit;
}

    • Related Articles

    • Customize Registration

      Once you have created your session, the next step is managing your registrations. Registration allows attendees to tell you ahead of time that they will be participating. Enable registration Registration helps you plan your session by letting you ...
    • How can I restrict travel bookings based on place and trip date?

      In the following code, added to the on add -> validate block of the Script tab, the Booking_Form restricts entries based on the following conditions: Only four bookings allowed for a specific place on a day. If the number of bookings (with Place & ...
    • How do I Filter Views based on Date Criteria?

      Show records that expires in the next seven days You can use the following criteria in your view to fetch records ending in the next 7 days, based on the Expiry date in the form. In the sample code given below, Expiry is the name of the date field in ...
    • 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 ...
    • 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, ...