How to hide year option from the Birthday picker?

  • Profile Image
    MarianaCCForm
    Asked on March 10, 2017 at 05:14 AM

    Is there a way I can use the Birthday picker widget but not have the year in. We only want them to select day and month?

  • Profile Image
    Kiran
    Answered on March 10, 2017 at 09:23 AM

    It is possible to hide the year field from the birthday picker field by injecting the following CSS code to the form. However, the field cannot be a required field since the year needs to be selected.

    [id$='_year'] {

    display:none;

    }

    Hope this information helps!