Disable multi selection for single value fields

Created on 20 September 2022, about 2 years ago
Updated 8 February 2023, almost 2 years 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.71.5 2024