Allow a custom 'To' year

Created on 10 August 2023, over 1 year ago
Updated 23 May 2024, 7 months 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 over 1 year ago
  • 🇺🇸United States justcaldwell Austin, Texas

    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 over 1 year 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 over 1 year ago
  • 🇺🇸United States justcaldwell Austin, Texas

    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 Austin, Texas
  • Status changed to Closed: won't fix 7 months ago
  • 🇺🇸United States justcaldwell Austin, Texas

    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.71.5 2024