Attach module.lp.form.data.validationRules to any button

  • 21 April 2016
  • 1 reply
  • 5 views

I would like to trigger the validation of a form, from another button, different than the form’s default button. In this case a lightbox one.

Example:





Submit

Normal Button
there’s a form and it’s button “Submit”, then there’s a “Normal Button” to which i want to attach the same validation “behaviour” of the form’s “Submit” button.

i want to validate the form clicking the second button then if validates, it will go to a location.

how can i implement

module.lp.form.data.validationRules[field]

to this button?

 see related guide

thanks


1 reply

please help !!

Reply