ztioge's avatar

Validation in a step form

Hello to everyone,

Im creating a step form with bootstrap that is 9 steps long, my idea is to validate all the fields that are in each step with the Laravel validator, and once the current page is validated i want to redirect the user to the next step if the validation is correct.

Any ideas?

Thanks in advance.

0 likes
1 reply
bobbybouwmann's avatar
Level 88

This repository might be useful for you: https://github.com/proengsoft/laravel-jsvalidation/wiki/Validating-Examples

Also in general any javascript framework or library can handle this for you.

You have two options to handle this. One is using an API when you want to go to the next tab. If something is wrong you show some error message and so on. The other options is to do the validation on the javascript side and handle everything with javascript. That is totally up to you!

Please or to participate in this conversation.