Skip to content

[Feature] Ability to configure different validations to run at different times #195

Open
@SilentRhetoric

Description

I would like to be able to configure the form to have certain validations run at different times than other validations.

For example, one validation may make sense only to run on submit, while others should run on input for real-time feedback to the user.

A simple use case is the required validation, which feels natural to apply on submit, but feels aggressive when it throws an error if the user is working their way through the form and may have touched a field but is not yet ready to submit.

In other cases, immediate feedback about the input value is important, such as limiting the input to a certain maximum and giving the user immediate feedback so they can correct it while they are working on that field, rather than needing to go back and fix it upon submission.

Hope that makes sense! Thanks for all you do to create and maintain this library!

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions