New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature Request]: Wizard - disable next #564
Comments
Hi @flochaz, thanks for your request. |
I have a form in each step and I'd like to validate the fields validity before letting the user move to next one. |
You can manage which step is active with the - controllable - Here's how you can perform the different validations: If the wizard step needs server-side validation, perform the validation when the For client-side validation you can perform the validation when the |
Ok I can work with that but that does not give the capability to deactivate the button prior to fields completions . |
We recommend keeping the submission button active at all times as a fallback mechanism for validating these required fields. In these scenarios, deactivating the submit button forces them to hunt for their mistake or blocks them from moving forward, leaving the user frustrated and confused. Therefore, providing feedback through error messages invoked on submission is often the most straightforward and clearest approach to validation. Take a look at the form validation pattern article for more details. |
Description
Current wizard always allow to move to next step. Would be great if we could disable Next button with a
disableNext
props at step level.A workaround today is to play with top level
isLoadingNextStep
but it will have the spinning wheel and needs complex logic to get it to be set right at each step since it's top level props.Code of Conduct
The text was updated successfully, but these errors were encountered: