What is JotForm?
JotForm is a free online form builder which helps you create online forms without writing a single line of code. No sign-up required.

At JotForm, we want to make sure that you’re getting the online form builder help that you need. Our friendly customer support team is available 24/7.

We believe that if one user has a question, there could be more users who may have the same question. This is why many of our support forum threads are public and available to be searched and viewed. If you’d like help immediately, feel free to search for a similar question, or submit your question or concern.


  • Profile Image

    Specific Dates and Times on Form

    Asked by ewnolley on April 14, 2013 at 04:04 PM

    My client has a Mansion available for tours from May 1, 2013 - October 31, 2013. The tours are only available on weekends at specific times: Fridays - 10 - 9, Saturdays - 10 - 9 and Sundays 10 - 6.

    I want to be able to limit the tour ticket selection to ONLY the times available. I think I am about halfway there but I am experiencing a few issues.

    First, I only want the error message to show up ONCE the person has chosen both the date and the time. As it is now, the "date" error message is hidden but the "time" error message is showing by default until the person selects an available time.

    Secondly, is there any way to create a rule that will only show the date error message if it is not a weekend time? 

    Hopefully I am being clear with what I am attempting to do.

    You can view the page I am working on at http://themansionatfortchiswell.businesscatalyst.com/visit.html.

    Page URL:
    http://themansionatfortchiswell.businesscatalyst.com/visit.html

    hidden message create Selection
  • Profile Image
    JotForm Support

    Answered by jonathan on April 14, 2013 at 07:51 PM

    Hi,

    You can create a condition for the timer like this..

     

    You can test this form http://jotformpro.com/form/31037296724960

    ---

    Unfortunately, you cannot combine the condition rules for the date field and timer field. You will have to create 2 conditions for them separately (I just added the condition I described above to yours)

    And, for the condition to work, we have to settle for the ff: limitations.

    1. You will have to set the timer field to 24-hour format. The logic condition can read the 24-hour format only.

    2. No need to add timer field time range.

    3. You have to set the default time to ON.

    4. I used the condition rule to hide the submit button instead, because there is a default time available. For the submit button to appear the user have to select time between 900 and 2200 (9:00 AM and 10:00 PM)

    --

    Secondly, is there any way to create a rule that will only show the date error message if it is not a weekend time? 

    You may need to do full customization of the form using its source code to achieve this. Because you will then need to add a custom javascript codes to filter the day of the current date.

     

    Hope this help. Please inform us if you need further assistance.

    Thanks.