Hi again folks, am running into the following problem:

I have a custom field that I must include in a form that is the date of birth field.

Logically I am giving that field a date format. The problem is that the dates of birth are always at least 18 years old, and when selecting the correct date of birth the user is forced to go back one month at a time until reaching the indicated date, which it is very uncomfortable and takes a lot of time. (216 clicks for 18 years, 432 for 36 years, and there is a lot of cases with that dates)

Is there a way that the date picker can offer jumps of one year to facilitate the generation of such tickets?

Can you think of any other way to simplify entering a date of birth?

Greetings to all!
Thanks in advance

@fnixt

Yea, you can simply type in the date in the textbox and the date picker will automatically jump to that date.

Cheers.

Thanks Kevin!

I was aware of that possibility, but since I am going to use it also for mobile devices, it was not a possible option.
Finish by reviewing the code and activating the drop-down field of years from the file
js / jquery-ui-1.12.1.custom.min

Set the value true for "changeyear"
It remained like this:

"changeYear: true, yearRange:" c-100: c + 100 "

Also change the value of "yearrange" to show up to 100 years back and forth.

It is not very aesthetic, but it works perfectly.

I leave you a screenshot.

Thanks a lot!!!

Write a Reply...