Problem/Motivation

I'm working with a content type imported from a Drupal 7 site. All of the component labels started out blank. We don't use the Credentials component, so I left it unchecked. I ended up unable to save the field edit form, but with no indication of a problem. I turned on the Javascript console in Chrome and saw this error:

An invalid form control with name='settings[labels][credentials]' is not focusable.

I had to turn on the component and fill in the Label value. Then I could turn off the component and submit the form.

Steps to reproduce

Create a Name field. Set the label field for a component to blank and then turn off that component (uncheck the checkbox for it) so that all of the related fields for that component are no longer displayed. Try to submit the form.

Issue fork name-3258091

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

brad.bulger created an issue. See original summary.

bluegeek9’s picture

I was able to reproduce the issue.

I believe the issue is caused by the label field for credentials is required. When the component is disabled the error message for the empty label fails.

santanu mondal made their first commit to this issue’s fork.

santanu mondal’s picture

Working on it..

santanu mondal’s picture

Status: Active » Needs review
bluegeek9’s picture

Status: Needs review » Needs work

The error "Label for Credentials field is required." still occurs

bluegeek9 changed the visibility of the branch 8.x-1.x to hidden.

bluegeek9’s picture

Assigned: Unassigned » bluegeek9
Status: Needs work » Active

bluegeek9’s picture

Assigned: bluegeek9 » Unassigned
Status: Active » Fixed
//www.flaticon.com/free-icons/thank-you Thank you for your contribution! Your continued support makes this project sustainable.
There are multiple ways to show appreciation for the work contributed to this project including:
  • Triage issues and adding more context to existing issues.
  • Flagging Name Field as a favorite on the project page to help others discover it and show your support.

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

bluegeek9 changed the visibility of the branch 3258091-empty-label-for to hidden.

  • bluegeek9 committed 723083e6 on 8.x-1.x
    feat: #3258091 Empty label for unused component blocks field edit form...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.