Enter birthday

brononius 16 Apr, 2013
Hey,

I'm creating a form where the people must enter their birthday.
With the normal date picker, it's a bit hard to go backwards all the year (=12 months). If you're 40 years old, this are 480 clicks... :$

Is there a better way to do this?
GreyHead 16 Apr, 2013
Hi brononius,

Use the MooTools DatePicker and set it up to start with a Year View.

Bob
brononius 05 May, 2013
If i'm not wrong, i need to add startView: 'years' to DateTime Picker config, correct?
But once i do this, i'm getting after save the result: startView: \'years\'
And when i now try to pick a date, i don't get the calender anymore.


Seems i'm having a problem to add a single quote...
I'm having the same behavoir with the single quote when i adding text to a label or so...
GreyHead 05 May, 2013
Hi brononius,

Please check the settings for your site on the System Info | PHP Info page; it looks as though you have Magic Quotes enabled. This setting is deprecated and several things in ChronoForms will fail if it is enabled.

You may be able to work around it by using the Custom MooTools Datepicker action from the PowerFields actions group.

Bob
brononius 06 May, 2013
Great, that was the problem...

I've added a "local" php.ini to allow more input fields (max_input_vars = 15000) for my form.
And for one or the other reasons, this put the magic quotes to 'on'?
So i've just updated the local php.ini with:
magic_quotes_gpc = Off
magic_quotes_runtime = Off
magic_quotes_sybase = Off


Thanks a lot!!!
I own you (another) beer/coffee...
GreyHead 06 May, 2013
Hi brononius,

I guess that the setting was different in the new local php.ini

Bob
This topic is locked and no more replies can be posted.