Restrict Date Picker Selections Question

0
Hello,

I'm wondering if anyone knows of a way to restrict the date picker selections. For instance I'd like to restrict the date picker such that the required date for a request can't be less than 2 days from today. Any ideas?

Accepted Answer

Thursday, February 11 2016, 03:54 PM - #Permalink
0
I don't think that there is any way to restrict the selections on the date picker itself, so my only suggestion would be to add a form action that checks the value of the date field when it changes and throws an error or warning if it is less than 2 days from today.
The reply is currently minimized Show
Responses (2)
  • Accepted Answer

    Thursday, February 11 2016, 07:26 PM - #Permalink
    0
    I agree with David. You can make the field invalid so that the form can't be submitted until they fix the date field. Besides, I never use the date picker when I enter a date. :)
    The reply is currently minimized Show
  • Accepted Answer

    Friday, February 12 2016, 06:38 AM - #Permalink
    0
    Thanks All,

    I was hoping to make it grayed out so users couldn't use the date picker for certain dates. I tried playing with different jQuery javascripts, but I'm just not familiar enough with it to know if I'm testing everything correctly.
    The reply is currently minimized Show
Your Reply

Recent Tweets