I have multiple field (cardinality 3). And all 3 field inputs are required, but should be only first. E.g. <input name="field_phone[0][value]" ...>

I think my addition is a dirty way. I guess a better way to look at which field inputs are required from initial page load and change attributes only of those inputs.

This error is after https://www.drupal.org/commitlog/commit/4894/ed23beeba795cdec0db2616bcb3... commit.

Patch will be attached.

Comments

super_romeo created an issue. See original summary.

super_romeo’s picture

stopopol’s picture

I have the same issue with a setup of three fields inside a paragraph. Only the first field is set to be required, but all fields are required in the form. The bug occures with 8.x-1.0-alpha9.

However, your patch doesn't fix the issue in my setup.

EDIT: I correct myself. It does fix the issue.

nickdjm’s picture

Status: Needs review » Reviewed & tested by the community

I have the same issue with a multi-telephone field.

Tried the patch out and it works as expected- fixed the issue!

  • colan committed 48b2403 on 8.x-1.x authored by super_romeo
    Issue #3157123 by super_romeo: All inputs in multivalue field are...
colan’s picture

Status: Reviewed & tested by the community » Fixed

Thanks!

super_romeo’s picture

You are welcome!

Status: Fixed » Closed (fixed)

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