Problem/Motivation

When inline_form_errors module is enabled, validation errors appear at the first component field with the composite error message. Example:

Name Test also requires the following parts: Middle name(s), Family.

Steps to reproduce

TBD

Proposed resolution

When inline_form_errors module is enabled, each validation error should appear under each component field.

Remaining tasks

TBD

User interface changes

TBD

API changes

TBD

Data model changes

TBD

Issue fork name-3555841

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

jcandan created an issue. See original summary.

jcandan’s picture

This may just be a matter of code clarity, and probably boils down to: rename the '@components' argument to singular '@component' . I am placing this here because I looked at it and thought it needed an implode(', ', $missing_labels) .

bluegeek9’s picture

Issue summary: View changes
Status: Needs work » Postponed (maintainer needs more info)
StatusFileSize
new30.5 KB

Is this the issue you are seeing?

inline form error

jcandan’s picture

Title: [DRAFT] Adjust per component inline form errors » Split inline form errors to individual component fields
Category: Task » Feature request
Issue summary: View changes
Status: Postponed (maintainer needs more info) » Active

Based on #2, I think I literally spun this up just from having read @components plural, and wanted to circle back around to test it, but never did.

Seems, based on your screenshot, it plops the error at the first component field, and does indeed display the "requires the following parts" message.

For inline_form_errors module, perhaps it would be better to allow it be be split up, so that each field gets their individual inline form error.

Updated title and description to reflect this finding.

bluegeek9’s picture

StatusFileSize
new28.52 KB

inline error

bluegeek9’s picture

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:

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 committed a6203649 on 8.x-1.x
    fix: #3555841 Split inline form errors to individual component fields
    

Status: Fixed » Closed (fixed)

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