Skip to content

How to trigger initial validation in Field.Root? #3323

@Vinayaka-Hebbar

Description

@Vinayaka-Hebbar

I need help understanding how to trigger initial validation for a field created with Field.Root.

In my form, the field is marked as required, but Field.Root does not validate on mount.
Because of this, the field does not show its error state until the user interacts with it.

What I need help with

  • How can I trigger validation on mount for a Field.Root field?
  • Is there an API or recommended pattern to manually call validation (like validate() or triggerValidation() )?
  • What is the correct approach to show initial error UI for required fields?

Context

  • Validation must run immediately when the component is rendered.
  • Error state should be visible on initial load without user interaction.

Metadata

Metadata

Assignees

No one assigned

    Labels

    component: fieldChanges related to the field component.support: questionCommunity support but can be turned into an improvement.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions