Datepicker only months and year

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Locked
babel
Forum Members
Forum Members
Posts: 147
Joined: Fri Oct 19, 2012 8:58 pm

Datepicker only months and year

Post by babel »

Formbuilder 1.0.2 is working fine, except in the datepicker. If I remove day in dateformat and the day in the date component, the required field is not working. Even if customers have filled a month and year, they get a message that the datefield is not filled. So the question is how can I get a working datefield with only months and year?
I'm using cms ms 2.2.12
User avatar
DIGI3
Dev Team Member
Dev Team Member
Posts: 1628
Joined: Wed Feb 25, 2009 4:25 am
Location: Victoria, BC

Re: Datepicker only months and year

Post by DIGI3 »

When I've done this I just hide the day field with css/js. Give it a default value so it passes validation, but the visitor doesn't see it.
Not getting the answer you need? CMSMS support options
babel
Forum Members
Forum Members
Posts: 147
Joined: Fri Oct 19, 2012 8:58 pm

Re: Datepicker only months and year

Post by babel »

Thanks Digi3. Your solution works.
Locked

Return to “Modules/Add-Ons”