Custom JS on form submission and front-end navigation

mhas16

Member
I want to run some custom JS on form submission.
I had this option in Fabrik 2.1 , I can't find the same in Fabrik 3.1.
Is there a way to run some custom JS when users click the 'Previous' and 'Next' buttons on multipage forms
 
Thanks Rob !! This is exactly what I wanted. I will try it out now.
Just as an update , I was using Jquery to add custom JS when 'Next' and 'Prev' buttons are clicked.
Problem was that after executing my Custom code, Fabrik default code was also getting executed and my changes were being overridden by the default code.
Where can I find out the exact JS that is being executed when these buttons are clicked ?
 
Just as an update , I was using Jquery to add custom JS when 'Next' and 'Prev' buttons are clicked.
Problem was that after executing my Custom code, Fabrik default code was also getting executed and my changes were being overridden by the default code.
I guess it depends what you were trying to override, but the Fabrik event hooks are intended to avoid those types of issues. Also returning false from the plugin call will cancel the rest of the calling action from taking place.

The code for the form js handling is in media/com_fabrik/js/form.js.
Form submission is in media/com_fabrik/js/form-submit.js
 
We are in need of some funding.
More details.

Thank you.

Members online

No members online now.
Back
Top