troch / angular-multi-step-form

An angular module for creating multi step forms / wizards
http://troch.github.io/angular-multi-step-form
ISC License
144 stars 44 forks source link

Get validation of forms in different steps #32

Closed gustavogsimas closed 8 years ago

gustavogsimas commented 8 years ago

Ok, here's the deal, im not being able to see if the forms in the other steps are valid or not.

For example, i'm in the first step and i wanna see if all the other step's forms are valid without going to those steps.

I tried to envolve the whole multi-step-container in only one form, didnt work. I tried to use the $getSteps function, it indeed returned all the steps, but returned the valid attribute false for all of them, even if some of them are correctly valid.

Is this possible or i have to create a custom directive to do this? Thanks in advance.

troch commented 8 years ago

What have you tried to check if steps are valid or not?

gustavogsimas commented 8 years ago

I wasn't checking, the user was able to navigate through steps without validating them. And then when he clicked the save button, i wanted to check all the forms.

Anyway I got it working making changes in my background, Sorry for my bad English and Thanks for your attention =)