awesome-react-stepper
awesome-react-stepper copied to clipboard
Request for adding validation prop to multi-step form
Hi there! awesome forms, I was wondering if there is a option to validate user input and not moving to the next step until certain requirements are met. for example, in my case, I want to ensure the user submits a file before moving on to the next step.I think it would be a great addition to have a simple "true/false" prop that can be passed from the parent component to the continueBtn prop and check if the user has met the requirements before submitting the form. thanks
Hey @RidaEn-nasry , thanks for raising the issue!
Yes we can add this as a validation in the onContinue
prop itself to maybe return the function itself if the custom onClick validation fails. Will work on it and update it in the next version sooner.
Also happy for more discussion on better ways to implement it!
Thanks :)
Hey,
+1 for the initial request
Thanks a lot for your tool