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 ;)
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | term_reference_fancytree-disable-multi-select-for-single-term-fields-3.patch | 4.16 KB | codebymikey |
Comments
Comment #2
gurvan commentedComment #3
codebymikey commentedAttached a reroll of patch #2 addressing some minor typos.
Comment #4
codebymikey commented