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.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | 3157123-2.conditional_fields.All-inputs-in-multivalue-field-are-required-but-should-be-only-first.patch | 701 bytes | super_romeo |
Comments
Comment #2
super_romeo commentedComment #3
stopopol commentedI 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.
Comment #4
nickdjmI have the same issue with a multi-telephone field.
Tried the patch out and it works as expected- fixed the issue!
Comment #6
colanThanks!
Comment #7
super_romeo commentedYou are welcome!