• Resolved TheBusinessCat

    (@thebusinesscat)


    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.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Kris – WPMU DEV Support

    (@wpmudevsupport13)

    Hi @thebusinesscat

    I hope you are doing well today.

    I know I can add a select field and put all the years as options, but this would seem cumbersome.

    Not at all. Please try to generate all required years in google sheet, copy them and use “Bulk Edit” in select. Before you create google sheet, please enable bulk edit in select which will show you csv template how it should look like.

    Kind Regards,
    Kris

    Plugin Support Kris – WPMU DEV Support

    (@wpmudevsupport13)

    Hi @thebusinesscat

    We haven’t heard from you in a while, I’ll go and mark this thread as resolved. If you have any additional questions or require further help, please let us know!

    Kind Regards,
    Kris

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Disable Certain Datepicker Fields’ is closed to new replies.