Skip to content

Required repeatable fields get validated incorrectly in submission form #931

@MarisArins

Description

@MarisArins

After last changes to require repeatable items to be added with "+" button to save those there is a problem with validation.
Validation (checking mandatory fields) still check the original input fields, not the added extra elements (the one are added below original input fields)

Here is example of Author and Other Titles fields. Both have 1 element added with + sign, the original fields(do not get saved !!!) are empty, validation not passed:
image

Here are the original fields filled with dummy values (do not get saved), validation passed :
image

Expected :
Validation for repeatable fields check if there is at least 1 element in the associated array, no checking of original input fields

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions