How to disable past dates (greyed out, cannot be selected)

  • EffieMcNair
    Asked on March 16, 2016 at 1:55 AM

    Hi There,

    I've set it up to 'YES' as in the guide but it isn't working. I read a thread from 2013 with the same problem which you said you had a glitch, and wondering if you have solved it since then?

    Here is my form:

    https://form.jotform.co/60738104748863

     

    Thanks, Effie

  • Elton Support Team Lead
    Replied on March 16, 2016 at 4:24 AM

    It is working fine on your form as of checking.

    How to disable past dates (greyed out, cannot be selected) Image 1 Screenshot 20

    Your form isn't showing the error message due to the custom CSS injected into it.

    If you want the form error messages to appear just like on this screenshot, inject this CSS codes to your form.

    .form-line-error .form-error-message {

        display: block !important;

    }

    Guide: https://www.jotform.com/help/117-How-to-Inject-Custom-CSS-Codes (paste it at the bottom section)

    Hope this helps!

  • EffieMcNair
    Replied on March 16, 2016 at 4:40 AM

    Haaaa....Thanks, but I was actually expected it to do something else...not just to show an error :-)

    I thought It's going to 'grey' out the fields that are in the past...so the user is not able to choose it at all....example here (under  Moving Date: *):-

    https://www.kentremovalsstorage.com.au/instant-removalist-quotes/locations/

     

    Is it possible at all?

  • Elton Support Team Lead
    Replied on March 16, 2016 at 4:47 AM

    That is still possible. :)

    On the same property window, click on "Limit Dates" button then uncheck the "Past".

    How to disable past dates (greyed out, cannot be selected) Image 1 Screenshot 30

    Past dates cannot be selected (greyed out) after that.

    How to disable past dates (greyed out, cannot be selected) Image 2 Screenshot 41

  • EffieMcNair
    Replied on March 16, 2016 at 5:13 AM

    Now you are talking!   Thank you :-)

  • Charlie
    Replied on March 16, 2016 at 5:26 AM

    I'm glad my colleague's suggestions helped :) You can also check our guide related to the "Limit Dates" option in this link: https://www.jotform.com/help/337-How-to-Use-the-Limit-Dates-feature-in-a-DateTime-field.

    Should you need our assistance again, feel free to visit us here in the forum. 

  • Apaul
    Replied on June 19, 2017 at 1:59 AM
  • Charlie
    Replied on June 19, 2017 at 3:32 AM

    @Apaul

    Thank you for sharing your thoughts on this. This thread is actually way back 2016, if you have concerns, feedback or any questions, please do open a new thread here in the forum.

    Thank you.