Is it possible to set the save button just for the final tab?

Hi I just been trying to do the same thing
The Group ID which i require to show the submit button is "5" so it should be disabled on all other tabs.
This does hide the Save button but it's not showing in the Group tab with id of 5 either unfortunately.
JavaScript:
requirejs(['fab/fabrik'], function () {
    Fabrik.addEvent('fabrik.form.loaded', function (form) {
       // disable the Submit button on form load
       form._getButton('Submit').style.display="none";
       // listen for the tab click event, and enable/disable the Submit button depending on the tab being clicked
       Fabrik.addEvent('fabrik.form.tab.click', function(form, groupId) {
            if (groupId === '5') {
                     form._getButton('Submit').style.display="inline";
                 }
                else {
               form._getButton('Submit').style.display="none";
                }
        });
     });
});
 
Ah, OK, well that isn't a tabbed template, it's a multipage form, which is completely different. The 'fabrik.form.tab.click' only fires when you click on a tab. So it's not going to fire unless you have, well, tabs to click on. :)

And in multipage mode, it automatically keeps the submit button disabled until the last page.

-- hugh
 
We are in need of some funding.
More details.

Thank you.

Members online

Back
Top