Problem/Motivation
For fields of unlimited values 'Add another item' button gets added as text to the input box rather than showing as a button resulting in an extra entry being added on update.
Steps to reproduce
Add a text field
Set values to unlimited
Set the field form display as editable field
When viewing the editable field the button 'Add another item' is included in the last empty input box.
On updating it creates the entry 'Add another item'
Deleting 'Add another item' still adds it
Proposed resolution
Make the add another item a button, like in the backend.
Remaining tasks
User interface changes
API changes
Data model changes
| Comment | File | Size | Author |
|---|---|---|---|
| #7 | Multiple References.png | 19.42 KB | paulrad |
| #7 | Multiple Numbers.png | 16.99 KB | paulrad |
| #7 | Multiple Media.png | 69.65 KB | paulrad |
| #7 | Multiple Body.png | 39.08 KB | paulrad |
| #3 | Screenshot from 2023-08-18 11-30-07.png | 80.53 KB | kpoornima |
Comments
Comment #2
rviner commentedComment #3
kpoornima commented@rviner

I have tried checking this issue. Looking like all looks good.
If i am missing anything can you please elaborate more on this issue
Comment #4
rviner commentedOk, I've realised its a custom theme issue.
The issue with the 'Add a new item' adding as a new entry I found was a result of applying this patch: https://www.drupal.org/project/editablefields/issues/3308767 as its contained in the array when saving the fied.
Comment #5
paulrad commentedHi, @rviner!
Could you close the issue if it wasn't caused by the module?
Comment #6
paulrad commentedComment #7
paulrad commentedTested with different field types and could not reproduce the issue (screenshots provided).
Moving to RTBC.
Comment #8
gilmordComment #9
gilmord