Problem/Motivation

In certain cases we want to disable/hide the summary messages displaying above the form, each message tag linking to the respective field's error message, while using the inline_form_errors module.

Steps to reproduce

Enable inline_form_errors module. Enable it in a webform. The module will add form validation below the error fields and also a error summary above the form.

Proposed resolution

Hide the message summary block and allow only inline form validation error messages, by adding a custom class to the block through the patch.

Remaining tasks

Give display:none in CSS to the custom class to hide the block.

Comments

aayushi.kachhwaha created an issue. See original summary.

aayushi.kachhwaha’s picture

StatusFileSize
new515 bytes
cilefen’s picture

Version: 9.1.x-dev » 10.1.x-dev
Status: Active » Needs review
Issue tags: -inline_form_errors
needs-review-queue-bot’s picture

Status: Needs review » Needs work
StatusFileSize
new152 bytes

The Needs Review Queue Bot tested this issue. It either no longer applies to Drupal core, or fails the Drupal core commit checks. Therefore, this issue status is now "Needs work".

Apart from a re-roll or rebase, this issue may need more work to address feedback in the issue or MR comments. To progress an issue, incorporate this feedback as part of the process of updating the issue. This helps other contributors to know what is outstanding.

Consult the Drupal Contributor Guide to find step-by-step guides for working with issues.

Version: 10.1.x-dev » 11.x-dev

Drupal core is moving towards using a “main” branch. As an interim step, a new 11.x branch has been opened, as Drupal.org infrastructure cannot currently fully support a branch named main. New developments and disruptive changes should now be targeted for the 11.x branch, which currently accepts only minor-version allowed changes. For more information, see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

gauravvvv’s picture

Status: Needs work » Needs review
StatusFileSize
new671 bytes

I have hidden the message summary block and allow only inline form validation error messages by using hidden class. please review

smustgrave’s picture

Status: Needs review » Needs work
Issue tags: +Needs Review Queue Initiative, +Needs tests

Believe this will need test coverage

Version: 11.x-dev » main

Drupal core is now using the main branch as the primary development branch. New developments and disruptive changes should now be targeted to the main branch.

Read more in the announcement.

smustgrave’s picture

Status: Needs work » Closed (duplicate)

Seems to be a duplicate of #2880011: Add a #disable_inline_form_errors_summary property to disable the Inline Form Errors summary which has more recent activity. Closing this one out.

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.