Makulia
Member
Hello, community.
Any suggestions on how to fire js code on event form.submitted only for current form not for all?
I have several different forms with form_xx.js on this page.
Now page reloads after submitting any form on this page.
My code is inside form_xx.js
Thanks.
Any suggestions on how to fire js code on event form.submitted only for current form not for all?
I have several different forms with form_xx.js on this page.
Now page reloads after submitting any form on this page.
My code is inside form_xx.js
Code:
Fabrik.addEvent('fabrik.form.submitted', function(form, event, button){
setTimeout(function() {
window.location.href = window.location.href;
window.location.hash = "ready_for_it";
location.reload();
}, 5000);
});
Thanks.