Disable multi selection for single value fields

Created on 20 September 2022, almost 2 years ago
Updated 8 February 2023, over 1 year ago

Problem/Motivation

When using a single value field, user can select multiple items and after form validation an error is printed. We can improve user interaction by handling fancy tree behavior according to field storage config.

Steps to reproduce

Add a term field with cardinality set to 1, and try to add more than to 1 term, see the printed error.

Proposed resolution

Use the selectMode & checkbox fancy tree options to display radios instead of checkboxes in this case.

Use the patch attached to this issue to solve this problem, no configuration needed ;)

πŸ› Bug report
Status

RTBC

Version

2.0

Component

User interface

Created by

πŸ‡«πŸ‡·France gurvan

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