'Unlimited' not pre-selected for new entity references using this widget

Created on 24 October 2012, over 12 years ago
Updated 25 June 2025, 8 days ago

If 'Multiple Selects' is selected as the widget type when creating a new entity reference field, it hides the 'Number of values' input where you normally select how many of that value to allow to be stored for the field.

I assumed it did this because you would almost always want 'Unlimited' there for Multiple Selects fields. However, when editing the field after that, you can see that the 'Number of values' is still the default value of 1.

Since '1' is the only value for that field which does not make sense for Multiple Selects, it seems like this behavior should be changed in one of two ways:
1. Automatically set the value to 'Unlimited' instead of 1 when creating a new entity reference with Multiple Selects as the widget. It could still be editable when editing the field later, or
2. Simply show the 'Number of values' field on the form for creating a new entity reference field using the Multiple Selects widget, which is the same behavior when using another widget besides Multiple Selects

Let me know if I haven't explained this well enough. Thanks!

πŸ› Bug report
Status

Closed: won't fix

Version

1.2

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States bmcclure West Virginia

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