mohammad ghane
mohammad ghane

Reputation: 71

Using bootstrapValidator in Twitter Bootstrap Wizard

how can validate a Twitter Bootstrap Wizard form on onNext event with bootstrapValidator?

Upvotes: 1

Views: 336

Answers (1)

Narendran Parivallal
Narendran Parivallal

Reputation: 1130

You can the index value returned by the callback function to determine the current step and validate it. If one or more of the required fields are found invalid, you can return false to the onNext event. This will prevent the wizard from advancing to the next step.

I have written a complete tutorial on Creating Bootstrap form wizard with Javascript Validation on my blog.

I hope it helps.

Upvotes: -1

Related Questions