jbyrley
Member
Hi,
Apparently there isn't an option for a page change trigger in the element javascript section (at least I haven't found it yet).
So I guess I have to add code to the form_X.js file to make this happen (where "X" is the form id).
I've added this code to that file:
requirejs(['fab/fabrik'], function() {
Fabrik.addEvent('fabrik.form.page.change.end', function (form, dir) {
Fabrik.getBlock(\'form_9\').doElementFX(\'fabrik_trigger_group_group21\', \'slide out\', this)}');
});
});
Unfortunately it doesn't work to slide out group 21 as hoped.
Where am I going wrong?
Apparently there isn't an option for a page change trigger in the element javascript section (at least I haven't found it yet).
So I guess I have to add code to the form_X.js file to make this happen (where "X" is the form id).
I've added this code to that file:
requirejs(['fab/fabrik'], function() {
Fabrik.addEvent('fabrik.form.page.change.end', function (form, dir) {
Fabrik.getBlock(\'form_9\').doElementFX(\'fabrik_trigger_group_group21\', \'slide out\', this)}');
});
});
Unfortunately it doesn't work to slide out group 21 as hoped.
Where am I going wrong?