Hi @thebusinesscat
Thank you for response!
In this case you can simply hide those year and day drop-downs with a bit of additional CSS.
First, make sure that the datepicker field has an option set to set default date (e.g. to “today”) so it could be submitted even if client doesn’t select day and then
– go to form’s “Appearance” settings
– enable custom CSS option
– and add this CSS there
#date-1-day,
#date-1-month {
display:none;
}
Note: if your date field has different ID you’ll need to adjust it; for example, if it’s date-3, CSS would be like this
#date-3-day,
#date-3-month {
display:none;
}
From now on both year and day will not be visible and clients will only have to select year.
The downside is that you’ll still have full date in the submission on the “Forminator -> Submissions” page. But in e-email notifications you can only include year if you prefer if you use tag like {date-1-year}
Alternative way is to simply use a standard select field with pre-defined list of years or use a number field with limits set to the numbers within some range.
Kind regards,
Adam