1. "Fabrik 4" helpers needed!

    You are invited to join other community members active in coding, maintaining and improving Fabrik. Please visit https://fabrik.help for more information!
    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) {
    where: replace X with your form id.

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