Problem

There are supposed to be a error message above the multivalue widget when values are invalid.

D10 first item validation

The message only appears when at least one valid field is submitted.
D10 first item validation

Steps to reproduce

  1. Add a field with unlimited cardinality to some node bundle.
  2. Open "Create" form
  3. Fill the field widget with some wrong values
  4. Click "Add another item" button

Expected behavior

Here how it works in Drupal 7.
D10 first item validation

Comments

Chi created an issue. See original summary.

viren18febs’s picture

Assigned: Unassigned » viren18febs

I am working on it.

viren18febs’s picture

Assigned: viren18febs » Unassigned
Status: Active » Needs review
StatusFileSize
new22.58 KB

As I have checked in Drupal 7.98, the error message is showing on top of the form. can please confirm the version of Drupal & Contrib module. Attaching image for your reference.

chi’s picture

can please confirm the version of Drupal & Contrib module.

The version is in issue metadata. Actually it affects all Drupal versions since Drupal 8.x.

viren18febs’s picture

StatusFileSize
new53.73 KB

I am getting the error on top of the form for both Drupal 7 & 9.5 version.
Image for reference.

smustgrave’s picture

Status: Needs review » Active

Doesn't appear to have a patch so nothing to review.

joaopauloc.dev’s picture

I think this issue was fixed here

smustgrave’s picture

Status: Active » Postponed (maintainer needs more info)

@Chi could you confirm?

joaopauloc.dev’s picture

StatusFileSize
new5.55 MB

Sounds good to me.
test issues

chi’s picture

Status: Postponed (maintainer needs more info) » Closed (duplicate)
Related issues: +#3076054: Existing field items should not be validated when adding another item in widget for unlimited cardinality field

It's not fixed yet. However, given that #3076054: Existing field items should not be validated when adding another item in widget for unlimited cardinality field was reported earlier I think this one can be closed as duplicate.