Home / Companies / Frigade / Blog / Post Details
Content Deep Dive

Async Validation Handlers in Forms

Blog post from Frigade

Post Details
Company
Date Published
Author
Christian Mathiesen
Word Count
630
Language
English
Hacker News Points
-
Summary

The Frigade Forms SDK has introduced support for asynchronous validation between steps or pages in a form by utilizing the validationHandler prop on the <FrigadeForm /> component, allowing developers to prevent users from proceeding to the next step until an asynchronous call, such as a database or API request, is successfully completed. This feature, showcased in the onboarding flow of Frigade's own application, ensures that users are prompted to wait for the validation process via a loading indicator, enhancing the reliability of form submission processes. Developers can implement this functionality in their codebase by updating to @frigade/react version 1.35.29 and using the validationHandler to manage async validations effectively.