Mohitsahu123 / 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

Change the calender #123

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
i want to change the calender(specially years field).so that it is feaseble to 
enter the user's date of birth.

Original issue reported on code.google.com by sauravsh...@gmail.com on 15 Apr 2011 at 7:08

GoogleCodeExporter commented 9 years ago
If I'm understanding correctly, you want to increase the data element's year 
range.  If so, you can use the example provided below as a guide.  This same 
example can be seen at 
http://www.imavex.com/php-form-builder-class/examples/jquery.php#date.

$form->addDate("Date w/Modified Year Range:", "MyDateYearRange", "", 
array("jqueryOptions" => array("yearRange" => date("Y") - 100 . ":" . 
date("Y"))));

Hope that helps.
- Andrew

Original comment by ajporterfield@gmail.com on 16 Apr 2011 at 6:37

GoogleCodeExporter commented 9 years ago
Thanks Andrew.It is actually what i m looking for.

Original comment by sauravsh...@gmail.com on 16 Apr 2011 at 2:22

GoogleCodeExporter commented 9 years ago
hi guys i studied the addDate attribute and found to get the past 
yearRange(like 2000-2011 by changing -ve range value)but i m not being able ta 
get the year range to future(like 2008-2015)

Original comment by maharjan...@gmail.com on 17 Apr 2011 at 4:29

GoogleCodeExporter commented 9 years ago
hi maharjan,

Does this work for you?

$form->addDate("Date w/Modified Year Range:", "MyDateYearRange", "", 
array("jqueryOptions" => array("yearRange" => "2008:2015")));

This will allow you to choose between dates 2008 all the way to 2015.

Original comment by moncojhr@gmail.com on 21 Apr 2011 at 3:59