VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: semen_123 on May 12, 2023, 08:10:32 AM

Title: birthday
Post by: semen_123 on May 12, 2023, 08:10:32 AM
I have created an additional "birthday" field for the user. Why can the user only select a future date?
Title: Re: birthday
Post by: Margriet on May 12, 2023, 12:03:34 PM
Don't think it is a bug. Why not using field type Age verification?
Title: Re: birthday
Post by: jenkinhill on May 12, 2023, 13:14:09 PM
Yes, the standard date picker only works forwards. The date picker for age verification allows previous dates to be entered.
Title: Re: birthday
Post by: semen_123 on May 12, 2023, 15:28:07 PM
What is the name of this field? Virtuemar Version: 3.8.9 10473
Title: Re: birthday
Post by: semen_123 on May 12, 2023, 15:39:38 PM
It's all right. Found. Thanks for the reply.
But it didn't suit me. I already have the vm_birthday fields filled in as a date from the old VM version. I had to edit vmjsapi.php

changeMonth: true,
changeYear: true,
'.$yearRange.'
'.$minMax.'

And is it possible to set up a datapicker for a simple choice of year, month. In order not to scroll through and choose the year and month separately?
Title: Re: birthday
Post by: Studio 42 on May 12, 2023, 17:01:05 PM
You can create a user field plugin and add own code