How to restrict date to three months from current date in date picker ?

  • testsite
    Asked on July 23, 2014 at 1:21 AM

    Howdy

     

    In the form calendar ( date picker) , can we setup conditions to restrict date to three months from current date.

     

    Please help 

    Jotform Thread 407085 Screenshot
  • jonathan
    Replied on July 23, 2014 at 4:57 AM

    Hi,

    You cannot make the restriction visible in the DateTime field itself

    BUT, Yes -- you can use conditional statement to apply restriction on particular dates.

    You can use condition rules to prevent submission(or show/hide fields) of the form if it the selected date is true to the restriction. 

    Here is an example form you can test http://www.jotform.me/form/42031913178450

    In my test form, you cannot submit the form if the selected date is higher than 10-23-2014 (3 months from today)

    This the condition statement I used

    How to restrict date to three months from current date in date picker ?  Image 1 Screenshot 20

     

    Hope this help. Inform us if you need further assistance.

    Thanks!

     

     

  • testsite
    Replied on July 23, 2014 at 6:07 AM

     

    Thanks heaps Jonathan .. It worked :)

  • Deanna770
    Replied on September 15, 2014 at 8:48 PM

    Hello, I can't seem to complete the conditions for the date picker. It allows me to set the rules, but doesn't give me any options for setting the mask. The only thing available in the "set mask" drop down is "please select." Please see below. I want to make sure no one can pick a date that is either or both of the following:

    1) Picking a date that is 'today +1' (we need at least 1 day's notice)

    2) Picking a date including any Tues, Thurs, Sat or Sun

    Am I doing something wrong? 

    Thanks in advance,

    Deanna

    How to restrict date to three months from current date in date picker ?  Image 1 Screenshot 20

  • Ashwin JotForm Support
    Replied on September 15, 2014 at 10:52 PM

    Hello Deanna770,

    As we cannot answer multiple question in one thread, I have moved your question to new thread and you will be answered here:  http://www.jotform.com/answers/429314 

    Thank you!