1. NOTICE: If you are using Fabrik and update to Joomla 3.10, you will need to update to Fabrik 3.10. And, if you are using Fabrik, do not upgrade to Joomla 4, we do not have a supported version ready for release. More information on a release date coming soon. Also, please note that Fabrik 3.10 will not install on any Joomla sites less than 3.8.
    Dismiss Notice

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