Hi there,
I Was wondering is it possible to modify date field in the following way:
when users open the calendar built in the date field, they are not able to choose any future date. They are only able to choose today or any date in the past.
Is there some script for that?
Solved! Go to Solution.
Views
Replies
Total Likes
Views
Replies
Total Likes
You cannot stop them from choosing a date in the future but you can test the date they chose against the current date (whatever the
computer is set to) and then take appropriate action. This will only happen after they pick the date in the calendar.
Paul
Hi Paul,
Thanks for fast response!
How do I do that?
Views
Replies
Total Likes
I created a sample for you .....the code is on the change event. Note that it uses FormCalc and not Javascript. It is easier in FormCalc that is why I chose that language.
paul
Hi Paul,
I tested the exemple you sent me. It works only when I hit october 10th or some date after it. If I hit october 9th, it doesn't work. In my form there is CurrentDate field. Maybe I should compare to it?
Views
Replies
Total Likes
I used the wrong date format ......try this one instead.
Paul
Views
Replies
Total Likes
It works now!
Thank you Paul
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies