How do i limit the calendar

  • Percmind
    Asked on July 16, 2014 at 9:04 AM

    Hi, I want to limit the calendar to view only 3 weeks from today, how do I do that in the source code javascript?

    Thanks.

  • Ashwin JotForm Support
    Replied on July 16, 2014 at 10:54 AM

    Hello Percmind,

    Have you downloaded your form's source code and want your users to view only up to 3 week from current day or you want to achieve this in your form builder?

    You can take advantage of our condition feature to check if the selected data is within the 21 days from today then you can show a message to user and hide the submit button as well. Please check the screenshot below on how to create such conditions:

    How do i limit the calendar Image 1 Screenshot 20

    Hope this helps.

    Do get back to us if you have any questions.

    Thank you!

  • Percmind
    Replied on July 17, 2014 at 5:37 AM

    How do i achieve this? it's not in "show properties" or anywhere, can you please tell me the steps? 

  • jedcadorna
    Replied on July 17, 2014 at 9:03 AM

    Here's the steps:

    1. Add a DateTime field

    How do i limit the calendar Image 1 Screenshot 50

    2. You can remove the "Allow Time"

    How do i limit the calendar Image 2 Screenshot 61

    3. Add a condition then choose Show / Hide a form field

    How do i limit the calendar Image 3 Screenshot 72

    4. Then follow the condition created by my colleague. If you want to hide the submit button once user selects weeks that is more than 21 days then you can apply this settings to your condition.

    How do i limit the calendar Image 4 Screenshot 83