1. Fabrik 3.8.1 has been released. It is mostly bug fixes and feature enhancements, but does include two new plugins (push notifications, and the sequence element). As usual we strongly recommend testing the new release on a sandbox if your application is mission critical, and always do an Akeeba backup before updating.

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