Problem/Motivation
The field_config_cardinality module (https://www.drupal.org/project/field_config_cardinality) allows setting cardinality per field instance (to override field storage settings). It would be great if the Select2 widget could support that, so e.g if an instance of a multiple cardinality field is configured to be single-value only, the widget could be similarly restricted.
Proposed resolution
Attached patch adds support.
| Comment | File | Size | Author |
|---|---|---|---|
| select2-support_field_config_cardinality-1.patch | 1.09 KB | bgilhome |
Issue fork select2-3221935
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
vadim478 commentedWork Great ! Thank's
Comment #5
chr.fritschLooks good
Comment #7
chr.fritsch