Skip to content

Access rawErrors in ArrayFieldItemTemplate #4688

@psyspy1

Description

@psyspy1

Prerequisites

What theme are you using?

other

What is your question?

Hello! I have a schema with deeply nested arrays. To improve the UX, I implemented a custom template ArrayFieldItemTemplate and collapse these arrays by default. I want to access validation errors for that array item in the ArrayFieldItemTemplate to decide between collapsing or expanding it.

ArrayFieldItemTemplateType doesn't have the rawErrors property. ArrayFieldTemplate has it but doesn't contain the errors for the items themselves, which makes sense TBH. How do I access the validation errors in ArrayFieldItemTemplate?

Thank you!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions