codyhouse / cd-wizard-form-changelog

Report issues and get notified about changes affecting the 'Wizard Form' component.
https://codyhouse.co/ds/components/app/wizard-form
0 stars 0 forks source link

Validate fields when going step forward (without submitting) #2

Closed vaelu closed 3 years ago

vaelu commented 3 years ago

Hello guys

It would be really cool if you could provide a solution on how to validate fields when clicking "Next" and then it should not go to the next page when something is wrong. Because without validating it does not make sense since the user can't submit the form at the end, but he does not know where the problem is.

Thanks :)

sebastiano-guerriero commented 3 years ago

Good point! We're working on it 👍

claudia-romano commented 3 years ago

We have updated the Wizard Form component to include the option to validate fields before changing step. You can get the updated JS code here: https://codyhouse.co/ds/components/app/wizard-form

Make sure to include the new Form Validator component as well.

More info on how to set the validation on the component Info page.