1. The 3.8 code for Fabrik is now available on github, in the 'master' branch. If you are familiar with updating Fabrik from github, we would appreciate it if you could test this code on J! 3.8 for us. Once we have some feedback, we'll build a 3.8 release.

Stop enter key submitting form

Apr 26, 2016
Stop enter key submitting form
  • Code (Javascript):
    window.addEvent('domready',function() {
        $('form_X').addEvent('keydown', function(e) {
            e = new Event(e);
            if(e.event.keyCode == 13) {
                e.stop();
            }
        })
    })
    where: replace X with your form id.

    Add this code to the file ...components\com_fabrik\js\X.js