- Issue created by @godotislate
- Status changed to Closed: duplicate
7 months ago 7:20am 5 June 2024 - 🇵🇹Portugal rutiolma
This is a duplicate of 🐛 Improve required validation of multiple value fields Active
Follow up from
🐛
Existing field items should not be validated when adding another item in widget for unlimited cardinality field
Needs work
:
For multiple-value/cardinality entity fields that are set as required, Drupal\Core\Field\WidgetBase::formSingleElement()
sets the first form field item element as #required
. This can lead to jarring behavior when the entity form is saved with the widget showing multiple fields, but the first field is empty. This situation becomes more likely after the changes for
🐛
Existing field items should not be validated when adding another item in widget for unlimited cardinality field
Needs work
remove validation when new field items are added. (Previously, new field items could not be added without passing validation on the existing field items.)
Closed: duplicate
11.0 🔥
This is a duplicate of 🐛 Improve required validation of multiple value fields Active