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

Comments

rviner created an issue. See original summary.

rviner’s picture

Issue summary: View changes
kpoornima’s picture

StatusFileSize
new80.53 KB

@rviner
I have tried checking this issue. Looking like all looks good.
png

If i am missing anything can you please elaborate more on this issue

rviner’s picture

Ok, 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.

paulrad’s picture

Hi, @rviner!
Could you close the issue if it wasn't caused by the module?

paulrad’s picture

Assigned: Unassigned » paulrad
paulrad’s picture

Assigned: paulrad » Unassigned
Status: Active » Reviewed & tested by the community
StatusFileSize
new39.08 KB
new69.65 KB
new16.99 KB
new19.42 KB

Tested with different field types and could not reproduce the issue (screenshots provided).
Moving to RTBC.

gilmord’s picture

Status: Reviewed & tested by the community » Fixed
gilmord’s picture

Status: Fixed » Closed (fixed)