PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Interested in posting Date as only requiring YYYY

  1. 3cstudio
    Member

    I'd like to give a form user the required Date field, but only the year they were born in -- no month, no day, just YYYY. Can that be done?

    Posted 11 years ago on Wednesday April 24, 2013 | Permalink
  2. David Peralty

    You could just have a dropdown with years and make it a required field. Then you'll have exactly what you need.

    Posted 11 years ago on Wednesday April 24, 2013 | Permalink
  3. 3cstudio
    Member

    Um... no. :)

    Nothing like a pull-down that has nearly 100 years on it to turn off a person taking a "quick poll" that starts by asking what Year they were born.

    Any other suggestions on how to make this as succinct and simple as possible?

    Posted 11 years ago on Thursday April 25, 2013 | Permalink
  4. David Peralty

    How would you like it to work? You could use an input field and then gfield_validation to test that it is just a number between a certain range?

    Posted 11 years ago on Thursday April 25, 2013 | Permalink