When there is only one option pre-select it

Created on 24 September 2023, over 1 year ago
Updated 25 September 2023, over 1 year ago

Problem/Motivation

When there is only one option in a certain level, pre-select it instead of the "Any" option.

Proposed resolution

TBD

Remaining tasks

TBD

User interface changes

TBD

✨ Feature request
Status

Active

Version

2.0

Component

User interface

Created by

πŸ‡«πŸ‡·France Grimreaper France πŸ‡«πŸ‡·

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

Comments & Activities

  • Issue created by @Grimreaper
  • πŸ‡ΊπŸ‡¦Ukraine paulrad

    I guess it only makes sense if the field is required. What do you think, @Grimreaper?

  • πŸ‡«πŸ‡·France Grimreaper France πŸ‡«πŸ‡·

    Hi,

    Not necessarily.

    My use case is a 3 levels vocabulary (course > level > year).

    I use term_reference_tree to force to reference leaf only (year).

    Currently my leafs are alone (next year no more alone) and also sometimes my second level terms has only one option too when there is only one "level" available.

    I don't want to force the exposed filter in my view to be required.

Production build 0.71.5 2024