PtrNrs
Member
Having perused the documents readme.html and Form Javascript Objects, I'm still having trouble working out how to fire JS events on form submission.
I have created the custom JS file components/com_fabrik/js/X.js and can successfully call functions from that file. So far so good.
However, I inserted a variation on the following function (ie just the alert) and couldn't get it working . . .
Fabrik.addEvent('fabrik.form.submit.start', function(form, event, button) {
alert('aha! you really should not press that button');
form.result = false;
})
Is there something else I need to do? Is there a bug? Do I need to upgrade from GitHub?
I'm using a GitHub release from approx 4 weeks ago. As this is on-line, I'm reluctant to upgrade to the latest, but will if I need to.
I have created the custom JS file components/com_fabrik/js/X.js and can successfully call functions from that file. So far so good.
However, I inserted a variation on the following function (ie just the alert) and couldn't get it working . . .
Fabrik.addEvent('fabrik.form.submit.start', function(form, event, button) {
alert('aha! you really should not press that button');
form.result = false;
})
Is there something else I need to do? Is there a bug? Do I need to upgrade from GitHub?
I'm using a GitHub release from approx 4 weeks ago. As this is on-line, I'm reluctant to upgrade to the latest, but will if I need to.