Allow a custom 'To' year

Created on 10 August 2023, 11 months ago
Updated 23 May 2024, about 1 month ago

I have a requirement to have a year field that allows authors to only select between certain year, lets say in this example 1916 to 1979.

The 'From' year is fine, byt the earliest 'To' year allowed is "NOW'.

Is it possible to have a 'Custom' option which would then show a new field to capture a custom year, which is then validated to be greater than the 'From' year?

✨ Feature request
Status

Closed: won't fix

Version

9.1

Component

User interface

Created by

🇦🇺Australia Stephen Ollman Canberra

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @Stephen Ollman
  • Status changed to Postponed 11 months ago
  • 🇺🇸United States justcaldwell

    Hello! Unfortunately, while this feature is on the roadmap, it isn't available in Year Only right now. I can't currently provide a timeline for implementation.

    As an alternative, this is possible in the very similar module Year → (which I also maintain). Just note that Year will eventually be deprecated in favor of Year Only once feature parity is achieved. A migration path will be provided.

  • Status changed to Active 11 months ago
  • 🇮🇳India Shreya_98

    Yes it is possible to have a 'Custom' option which would then show a new field to capture a custom year, which is then validated to be greater than the 'From' year.

  • Status changed to Postponed 11 months ago
  • 🇺🇸United States justcaldwell

    Possible, yes. Currently supported, no.

    The eventual implementation of this feature will mirror Year → 's, so I don't really recommend the solution in #3. Use at your own risk.

  • 🇺🇸United States justcaldwell
  • Status changed to Closed: won't fix about 1 month ago
  • 🇺🇸United States justcaldwell

    As I indicated in #4, we'll be supporting this request with the approach detailed in ✨ Allow flexible "from" and "to" (min/max) year ranges Needs work .

    Closing in favor of that one.

Production build 0.69.0 2024