- Issue created by @Jejddx
- 🇫🇮Finland mitechworld
Fix the issue with showing multiple text inputs or add button when the field with atuo-completion widget accepts multiple values.
With the new version (3.1.0), a field with illimited values doesn't have anymore "Add an element" button in edit form with autocomplete widget, so i can't add multiple values, just one.
And existing values are deleted (except the first one) when i save content.
Drupal 9.5.9.
Add a field with illimited values to a content type: i selected "France Regions" as source for testing because i use a custom source for my real field.
Select "External data source auto complete widget" in display form mode.
Try to edit a content: there is no button "Add an element".
Change annotation for autocomplete widget to use (back from V3.0.0) no multiple values, in src/Plugin/Field/FieldWidget/ExternalDataSourceAutoCompleteWidget.php, line 18
* multiple_values = FALSE
Make a patch
Active
3.1
Code
Fix the issue with showing multiple text inputs or add button when the field with atuo-completion widget accepts multiple values.