Skip to content

No way to access errors for a group defined with withFieldGroup #1652

@pifantastic

Description

@pifantastic

Describe the bug

When defining a group using withFieldGroup, it would be helpful to get a list of all of the errors for the group.

As an example, I have an address group. I'd like to render a list of errors at the group level (as opposed to the individual field level:

Image

However, the group store only contains values. You can get the form-level errorMap and sort of work backwards, but that's somewhat difficult. It would be really nice if the group store had an errorMap or something similar.

Your minimal, reproducible example

https://bolt.new/~/sb1-ehaxlmcw

Steps to reproduce

Here is an example of the kind of form I mean.

Expected behavior

It should be possible to get the errors for a group.

How often does this bug happen?

None

Screenshots or Videos

No response

Platform

macOS/Chrome

TanStack Form adapter

None

TanStack Form version

1.15.1

TypeScript version

No response

Additional context

No response

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