newhck / php-form-builder-class

Automatically exported from code.google.com/p/php-form-builder-class
GNU General Public License v3.0
0 stars 0 forks source link

addDate to allow older dates #113

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Use addDate function
2. Try to set oldest date using "minDate" option in jqueryOptions, i.e. "-75y" 
for going back 75 years
3.

What is the expected output? What do you see instead?

I expect to be able to select up to 75 years back

What version of the product are you using? On what operating system?

Current

Please provide any additional information below.

Trying to have people choose their birthday with addDate field - want to go up 
to 75 years back, but it refuses to go beyond 2001.

Here is my code:
$form->addDate("Date of birth", "birthday", $_POST['birthday'], 
array("jqueryOptions" => array( "dateFormat" => "yy-mm-dd", "minDate" => 
"-75y", "maxDate" => "+0")));

Original issue reported on code.google.com by derekash...@gmail.com on 4 Mar 2011 at 10:03

GoogleCodeExporter commented 8 years ago
See the last example at 
http://www.imavex.com/php-form-builder-class/examples/jquery.php#daterange 
titled "Date Range w/Minimum and Maximum Dates:".

- Andrew

Original comment by ajporterfield@gmail.com on 14 Mar 2011 at 3:04

GoogleCodeExporter commented 8 years ago

Original comment by ajporterfield@gmail.com on 14 Mar 2011 at 3:13