jQuery Date Picker
Forum rules
PLEASE READ THE FORUM RULES BEFORE YOU POST:
viewtopic.php?f=12&t=1901
MUST READ:
http://www.wysiwygwebbuilder.com/forms.html
http://www.wysiwygwebbuilder.com/form_wizard.html
Frequently Asked Questions about Forms
PLEASE READ THE FORUM RULES BEFORE YOU POST:
viewtopic.php?f=12&t=1901
MUST READ:
http://www.wysiwygwebbuilder.com/forms.html
http://www.wysiwygwebbuilder.com/form_wizard.html
Frequently Asked Questions about Forms
- ruel.lago22
-
- Posts: 59
- Joined: Thu Feb 01, 2018 11:32 am
jQuery Date Picker
Good day everyone,
I was wondering how can we disable past dates on jQuery Date Picker? And if possible require it before the form can be sent? I don't find any options in WWB14. I found some codes on the internet but I have no idea such as https://stackoverflow.com/questions/835 ... past-dates But uhmmm... I don't know where to insert it. I tried inserting it on the object html and page html but nothing works Does anyone already done this using WWB?
I was wondering how can we disable past dates on jQuery Date Picker? And if possible require it before the form can be sent? I don't find any options in WWB14. I found some codes on the internet but I have no idea such as https://stackoverflow.com/questions/835 ... past-dates But uhmmm... I don't know where to insert it. I tried inserting it on the object html and page html but nothing works Does anyone already done this using WWB?
- BaconFries
-
- Posts: 5653
- Joined: Thu Aug 16, 2007 7:32 pm
Re: jQuery Date Picker
Simple if you wish to disable dates you can use minDate:0 this will disable all past dates as from the current date.
Add date picker to page open its properties in Custom Options->Options add minDate:0
Add date picker to page open its properties in Custom Options->Options add minDate:0
- ruel.lago22
-
- Posts: 59
- Joined: Thu Feb 01, 2018 11:32 am
Re: jQuery Date Picker
I didn't know that it could be that simple . I made it minDate:0, maxDate: 7 and it worked fantastically beautiful! Maybe I am asking too much but I don't find any options to add some validation using jQuery Date Picker. I would require them to fill this before they can submit the form. Do you have anything you can share? I don't mean to be a spoon feed brat but I really have no idea. I'm scavenging bunch of codes on the internet and trying them and wishing best of luck if it will work Thank you in advance!
Screenshot: http://prntscr.com/jw5ank
Re: jQuery Date Picker
The full documentation of the jQuery Date picker can be found here:
http://api.jqueryui.com/datepicker/
http://api.jqueryui.com/datepicker/
- ruel.lago22
-
- Posts: 59
- Joined: Thu Feb 01, 2018 11:32 am
Re: jQuery Date Picker
Thank you Pablo I'll try my best to understand this codes and how to integrate them.
- BaconFries
-
- Posts: 5653
- Joined: Thu Aug 16, 2007 7:32 pm
Re: jQuery Date Picker
There is a jQuery plugin named jQuery Validator available that allows validation to be put datepicker take a look at the following url. To test scroll till you see the submit button trying clicking to see results
http://keith-wood.name/uidatepickervalidation.html
http://keith-wood.name/uidatepickervalidation.html
- ruel.lago22
-
- Posts: 59
- Joined: Thu Feb 01, 2018 11:32 am
Re: jQuery Date Picker
Oh dear. My brain would like to explode. I'm out using jQury Date Picker. Maybe I'll study this in the future and integrate them on my website. As much I would like to use them but... I will go back to using editbox (date) so that I can connect it with my database and add conditions more easily But I was wondering. Where can I put the "minDate:0, maxDate:7" here? I don't see any options.BaconFries wrote: ↑Mon Jun 18, 2018 7:47 am There is a jQuery plugin named jQuery Validator available that allows validation to be put datepicker take a look at the following url. To test scroll till you see the submit button trying clicking to see results
http://keith-wood.name/uidatepickervalidation.html
BaconFries. I would like to express my gratitude to you for going extra-mile in helping me with this. God bless you!
- ruel.lago22
-
- Posts: 59
- Joined: Thu Feb 01, 2018 11:32 am
Re: jQuery Date Picker
Hi Pablo!
I was using "minDate:0, maxDate:7" before in jQuery Date picker>> option and it worked. Now it's no longer working.
Regards,
Ruel
I was using "minDate:0, maxDate:7" before in jQuery Date picker>> option and it worked. Now it's no longer working.
Regards,
Ruel
Re: jQuery Date Picker
The date picker has not changed recently. Maybe there is conflict with other code on your page?
Re: jQuery Date Picker
Having a similar problem with validation. Is there a way to validate the date on the server? In my case the user can simply not select any date and submit the form. When I try to evaluate the date in the php code the server throws an error as undefined variable.
I just need to prevent the user from submitting the form without clicking on a date. Any thoughts?
For the gentleman who was looking for min and max dates here is what works for me:
I added this line to the custom options on the datepicker control:
defaultDate: "+3d",
minDate: "+3d",
beforeShowDay: $.datepicker.noWeekends
I wanted to set the default date 3 days from today
minDate user can select is also set at 3 days from today (it is an appointment setting application)
And I do not want them to pick weekends.
I just need to prevent the user from submitting the form without clicking on a date. Any thoughts?
For the gentleman who was looking for min and max dates here is what works for me:
I added this line to the custom options on the datepicker control:
defaultDate: "+3d",
minDate: "+3d",
beforeShowDay: $.datepicker.noWeekends
I wanted to set the default date 3 days from today
minDate user can select is also set at 3 days from today (it is an appointment setting application)
And I do not want them to pick weekends.
Re: jQuery Date Picker
Nevermind, I figured it out how to handle it on the server.
Custom form processing
If (empty($_POST["datePicker1"])) { send to error.html };
Great product Pablo! Appreciate it a lot.
Custom form processing
If (empty($_POST["datePicker1"])) { send to error.html };
Great product Pablo! Appreciate it a lot.
-
-
- Posts: 189
- Joined: Mon May 13, 2019 9:15 pm
Re: jQuery Date Picker
I looked in the Ready to use Java scripts but can't find the date picker. Where would i look ?
Never mind. found it
Never mind. found it
I used to have a photographic memory but i ran out of film !!!