DatePicker First of the Month only
For the datepicker field, anyone tried limit the selection to only the first day of any month?
7 Replies
Why not just do a monthly select since you know it can only be the 1st?
Thought about that, but then would be weird if you needed it to be a long range in years
How are they going to select a multi year range anyway?
not a range, but simply picking a date from any month
But you said they could only choose the 1st. So then just have a start month and an end month select. It’s going to be a lot easier.
Haven’t tried it but might be possible to disable the days in the non native picker.
not sure where you keep getting two dates from. Its simply going to be a the 1st of any month of an year. single field. End result would be storing 04/01/2024 or 12/01/2030, etc
I just don’t recall ever seeing a date picker even outside filament that is a month / year range.
You could still use two selects one for month and one for year and store them on a single field. Just did something similar for a day and time that had to be separate fields in the form.