awesome-react-stepper icon indicating copy to clipboard operation
awesome-react-stepper copied to clipboard

Request for adding validation prop to multi-step form

Open RidaEn-nasry opened this issue 1 year ago • 2 comments

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

RidaEn-nasry avatar Apr 04 '23 12:04 RidaEn-nasry

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 :)

AmeyaJain-25 avatar Apr 05 '23 13:04 AmeyaJain-25

Hey,

+1 for the initial request

Thanks a lot for your tool

Nathanpaternotte avatar Aug 15 '24 00:08 Nathanpaternotte