Page 1 of 1

Formbuilder feature request

Posted: Tue Jun 05, 2007 3:23 am
by johnbmcdonald
Hi Guys,

I built a form using formbuilder  0.2.4 and I created a field to pick birth date. The problem is that the dates in the dropdown go from 1997 to 2016, it would be nice to be able to specify a date range.

Thanks
John

Re: Formbuilder feature request

Posted: Sat Jun 16, 2007 9:37 am
by loukote
+1

Thanks

Re: Formbuilder feature request

Posted: Sat Jun 16, 2007 10:35 am
by cyberman
johnbmcdonald wrote: The problem is that the dates in the dropdown go from 1997 to 2016
Try this solution - open /modules/FormBuilder/classes/DatePickerField.class.php with your favourite editor. On line 55 you will found
      for ($i=$today['year']-10;$i<$today['year']+10;$i++)
There you can change the values - red is for start date, green is for end date.

Re: Formbuilder feature request

Posted: Sat Jun 16, 2007 2:17 pm
by calguy1000
This feature is already in SVN afaik, and will be in the next full release of formbuilder.

Re: Formbuilder feature request

Posted: Sat Jun 16, 2007 2:54 pm
by loukote
Thank you Cyberman and Calguy.

I wonder wheather the special characters will be treated in the next version. (A solution using the html entities proposed elsewhere dosn't work for me.)

Re: Formbuilder feature request

Posted: Sat Jun 16, 2007 2:57 pm
by calguy1000
I know SjG is doing something for that as well.