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.

Issue fork select2-3221935

Command icon 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

bgilhome created an issue. See original summary.

vadim478’s picture

Work Great ! Thank's

chr.fritsch made their first commit to this issue’s fork.

chr.fritsch’s picture

Status: Needs review » Reviewed & tested by the community

Looks good

  • chr.fritsch committed 0d48120c on 8.x-1.x
    Issue #3221935 by chr.fritsch, bgilhome: Support...
chr.fritsch’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.