sathomas / acc-wizard

Wizard implementation for bootstrap based on accordion
216 stars 76 forks source link

Validate Fields from form when click Next Step #4

Closed ytzvan closed 11 years ago

ytzvan commented 11 years ago

Hello, I'm using Jquery Validation for bootstrap: http://docs.jquery.com/Plugins/Validation/ and the plugin works well with the form elements, I want to create an event when a user click on "Next Step" in the accordion wizard the button trigger the validation plugin and don't allows users take the next step if they leave some requiered field in blank. Ty.

sathomas commented 11 years ago

Sounds like a nice enhancement. I'd suggest adding an option to the plugin that specifies callbacks, and then trigger the appropriate callback on the click. You can look at how the plugin handles init and destroy callbacks to see how to add the code.

On Thursday, May 2, 2013 at 7:13 PM, Ytzvan Mastino wrote:

Hello, I'm using Jquery Validation for bootstrap: http://docs.jquery.com/Plugins/Validation/ and the plugin works well with the form elements, I want to create an event when a users click "Next Step" on the accordion wizard, the button triggers the validation plugin and don't allows users take the next step if the leave some requiered field in blank. Ty.

— Reply to this email directly or view it on GitHub (https://github.com/sathomas/acc-wizard/issues/4).

ytzvan commented 11 years ago

You mean in acc-wizard plugin or the validation plugin? Ty

sathomas commented 11 years ago

i was thinking of the acc-wizard

On Thursday, May 2, 2013 at 7:24 PM, Ytzvan Mastino wrote:

You mean in acc-wizard plugin or the validation plugin? Ty

— Reply to this email directly or view it on GitHub (https://github.com/sathomas/acc-wizard/issues/4#issuecomment-17370961).

ytzvan commented 11 years ago

Hello! Is there an easy way to implement a method called "onBeforeNext" ?

sathomas commented 11 years ago

Seems like there ought to be. Unfortunately, I'm really buried with other projects now and don't have the time to offer individual support. I wish I could be of more help. Stephen

On Monday, May 6, 2013 at 6:25 PM, Ytzvan Mastino wrote:

Hello! Is there an easy way to implement a method called "onBeforeNext" ?

— Reply to this email directly or view it on GitHub (https://github.com/sathomas/acc-wizard/issues/4#issuecomment-17512223).

ytzvan commented 11 years ago

Ty, we'll implement a new way and maybe send you a pull request ;)

sathomas commented 11 years ago

Cool! Pull requests always welcome.

Stephen

On Monday, May 6, 2013 at 6:31 PM, Ytzvan Mastino wrote:

Ty, we'll implement a new way and maybe send you a pull request ;)

— Reply to this email directly or view it on GitHub (https://github.com/sathomas/acc-wizard/issues/4#issuecomment-17512505).