- cheekyfaceAsked on November 06, 2014 at 11:49 PM
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.
- JotForm Supportashwin_dAnswered on November 07, 2014 at 01:58 AM
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.
You want to show dropdown1 if the selected date is "November"
You can add condition something similar:
IF date is before "December, 01, 2014"
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.