Disable the 'Remove' button if there is a single row in the allowed values storage setting of the list fields

Created on 23 August 2023, over 1 year ago
Updated 31 August 2023, about 1 year ago

Problem/Motivation

In the issue 📌 The allowed values storage setting of list fields should be required Fixed the allowed values storage setting was made a required textarea, but with the introduction of multiple input fields for the allowed values setting in 📌 List key|label entry field is textarea, which doesn't give guidance towards the expected input Fixed only the first input field is a required field which can be deleted with the Remove button and the form can be saved without any allowed values for the list field. This does not satisfy the purpose of the allowed values being required.

Steps to reproduce

  1. Create any list type field on any entity.
  2. Delete the required input field (which is the first row of the table).
  3. Save the field settings with no allowed values.

Proposed resolution

Disable the Remove button when there is a single row in the allowed values storage setting.

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

🐛 Bug report
Status

Fixed

Version

11.0 🔥

Component
Field UI 

Last updated 19 days ago

Created by

🇮🇳India srishtiiee

Live updates comments and jobs are added and updated live.
  • Usability

    Makes Drupal easier to use. Preferred over UX, D7UX, etc.

  • Field UX

    Usability improvements related to the Field UI

Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024