We have a multi-step form where we collect data in each step. And in some steps, there needs to be a request to an external service or a DB lookup to find data. It can be generalized as:
the user provides some information in the first part of the form and hits "search"
if the form is valid, make a request or lookup
present the result to the user
the user confirms the data/adds more data and continues to the next step
An example would be providing a name and email to search for a customer, then confirming the accuracy of the found information and continuing to the next step.
I have not yet figured out a clean way to hook into the form wizard to make such an additional request. Is there? Or is this a use case where it's better not to use a form wizard (we use it because it handles the step navigation and data storage)?
We have a multi-step form where we collect data in each step. And in some steps, there needs to be a request to an external service or a DB lookup to find data. It can be generalized as:
An example would be providing a name and email to search for a customer, then confirming the accuracy of the found information and continuing to the next step.
I have not yet figured out a clean way to hook into the form wizard to make such an additional request. Is there? Or is this a use case where it's better not to use a form wizard (we use it because it handles the step navigation and data storage)?