Disable Certain Datepicker Fields
-
Hi there,
I need to use a datepicker field, and require the year field only, not the day and month. This is to select the vehicle year on the form, so a day and month would not make sense. I also need this field to be a required field.
I found this post and used the code mentioned in this link. Using this hides the day and month field, however it seems the form will not submit as it is only hidden, and not totally disabled.
Can this code be amended so that the datepicker field can be a required field and display only the year field?
I know I can add a select field and put all the years as options, but this would seem cumbersome.
Thank you.
- The topic ‘Disable Certain Datepicker Fields’ is closed to new replies.