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 ;)

Comments

gurvan created an issue. See original summary.

gurvan’s picture

codebymikey’s picture

Attached a reroll of patch #2 addressing some minor typos.

codebymikey’s picture

Status: Active » Reviewed & tested by the community