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

    conditions on dates - show hide for month selected

    Asked by cheekyface on November 06, 2014 at 11:49 PM

    Hi.

    I want to show and hide fields depending on the month selected by a user.

    For example in December we have different minimum booking requirements so I want to show an alternate options list for number of hours with a minimum of 2hrs instead of the usual 1.5hrs min.

    I'm not sure how to do this but I'm guessing somehow I have to nominate december as the month but the options don't offer just the month.  
    Do I pick a date then add +31days? 

    If not can you please show me the correct code or text to include and where?

    I'll keep testing and hopefully will hear from you guys soon.

     

    Cheers,

    Danny.

     

     

     

    show hide selected JotForm uploads height hide fields
  • Profile Image
    JotForm Support

    Answered by ashwin_d on November 07, 2014 at 01:58 AM

    Hello Danny,

    You want to show / hide form fields if the selected date is a specific month. Is that correct?

    You can take advantage of date field's "Before" and "After" condition to achieve your requirement.

    For example:

     

    You want to show dropdown1 if the selected date is "November"

    You can add condition something similar:

    IF date is before "December, 01, 2014"

    AND

    IF date is after "October, 31, 2014"

    Then show "dropdown1"

    Please check the screenshot below on how to add this condition:

    Hope this helps.

    Do get back to us if you have any questions.

    Thank you!