Skip to content

Validation is applied on the blur of field before clicking submit. #1434

Description

@anjalikalsariya

Validation working on the blur of fields(input, select) before clicking submit. Can we validate fields when clicking on the submit button instead on blur?

Activity

  1. changed the title [-]Validation working on blur of fields before clicking submit.[/-] [+]Validation is applied on the blur of field before clicking submit.[/+] on Jan 4, 2024
  2. rvsia commented on Jan 4, 2024

    @rvsia
    Contributor

    It should be possible to turn off this behavior by setting validateOnBlur, see https://final-form.org/docs/react-final-form/types/FormProps

  3. anjalikalsariya commented on Jan 4, 2024

    @anjalikalsariya
    Author

    Thank you @rvsia. I'll try it

  4. anjalikalsariya commented on Jan 5, 2024

    @anjalikalsariya
    Author

    @rvsia I tried validateOnBlur. But is not working.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions