Formbuilder DatePicker Question

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Locked
User avatar
johnbmcdonald
Forum Members
Forum Members
Posts: 60
Joined: Mon May 14, 2007 8:01 pm

Formbuilder DatePicker Question

Post 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, is there any way to configure the date range?

If I mess with the 10's on line 55 of DatePickerField.class.php
for ($i=$today['year']-10;$i<$today['year']+10;$i++)
would that do it? or break something else?

Thanks for your help
John
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: Formbuilder DatePicker Question

Post by calguy1000 »

That should do it..... Ideally, the start and end date should be options in the field.... can you file a feature request for that?
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
User avatar
johnbmcdonald
Forum Members
Forum Members
Posts: 60
Joined: Mon May 14, 2007 8:01 pm

Re: Formbuilder DatePicker Question

Post by johnbmcdonald »

Sure thing, I'll do that. Thanks for your help.

John
User avatar
sjg
Power Poster
Power Poster
Posts: 310
Joined: Thu Jan 27, 2005 5:11 pm

Re: Formbuilder DatePicker Question

Post by sjg »

This option has been implemented in the svn version. Look for a new release soon!
Many modules available from the http://dev.cmsmadesimple.org
The CMS Made Simple Developer Cookbook is now available from Packt Publishers!
User avatar
johnbmcdonald
Forum Members
Forum Members
Posts: 60
Joined: Mon May 14, 2007 8:01 pm

Re: Formbuilder DatePicker Question

Post by johnbmcdonald »

Excellent!  ;D

Thank You

John
tyman00
Power Poster
Power Poster
Posts: 906
Joined: Tue Oct 24, 2006 5:59 pm

Re: Formbuilder DatePicker Question

Post by tyman00 »

Do not double post on the same issue. One topic will suffice, especially if you are going to drag up a 2 year old topic.

LOCKED
If all else fails, use a bigger hammer.
M@rtijn wrote: This is a community. This means that we work together and have the same goal (a beautiful CMS), not that we try to put people down and make their (voluntary) job as difficult as can be.
Locked

Return to “CMSMS Core”