Provide default year options

Created on 23 September 2020, about 4 years ago
Updated 7 July 2024, 5 months ago

Problem/Motivation

Currently, the Year Only doesn't provide useful default value options. The only settings are '- None -' and '0'.

Default values could provide an improved user experience, e.g in cases where there is a large range of years, or the current year is most-commonly used.

Proposed resolution

Implement YearOnlyFieldItemList to provide useful default options (e.g. current year, relative year, specific year).

Remaining tasks

  • Review
  • Commit

User interface changes

Add a select for default value type. Provide dependent fields to collect relative date string (strtotime) and/or specific year value.

Data model changes

Add default_type, default_relative and default_specific to schema.

✨ Feature request
Status

Needs review

Version

9.1

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States justcaldwell Austin, Texas

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024