News:

Looking for documentation? Take a look on our wiki

Main Menu

birthday

Started by semen_123, May 12, 2023, 08:10:32 AM

Previous topic - Next topic

semen_123

I have created an additional "birthday" field for the user. Why can the user only select a future date?

Margriet

Don't think it is a bug. Why not using field type Age verification?

jenkinhill

Yes, the standard date picker only works forwards. The date picker for age verification allows previous dates to be entered.
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

semen_123

What is the name of this field? Virtuemar Version: 3.8.9 10473

semen_123

#4
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?

Studio 42

You can create a user field plugin and add own code