Extra Default value field when adding a field with an unlimited values

Created on 1 March 2023, almost 2 years ago
Updated 7 July 2023, over 1 year ago

Problem/Motivation

When adding a field with an Unlimited allowed number of values the 'Default value' field has two blank entries instead of one.

This was originally reported by drugan in 🐛 Adding unlimited field of widget type 'text' to content type will produce a form with more then 1 input fields Closed: duplicate .

Steps to reproduce

  1. Go to admin/structure/types/manage/article/fields
  2. Click on 'Add field' button.
  3. Add new field of 'Text(plain) field type.
  4. Set the cardinality is set to unlimited.
  5. Press 'Save field settings'
  6. Notice that the Default value shows two items instead of 1

Proposed resolution

The default value shows only one item when none are set yet, with the ability to add more.

Remaining tasks

None.

User interface changes

Before

Before
Same, but one field under Default value.

API changes

None.

Data model changes

None.

Release notes snippet

None needed.

🐛 Bug report
Status

Fixed

Version

10.1

Component
Field 

Last updated about 11 hours ago

Created by

🇳🇿New Zealand quietone

Live updates comments and jobs are added and updated live.
  • Field UX

    Usability improvements related to the Field UI

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