• Hello Fabrik Community

    Fabrik is now in the hands of the development team that brought you Fabrik for Joomla 4. We have recently transitioned the Fabrik site over to a new server and are busy trying to clean it up. We have upgraded the site to Joomla 4 and are running the latest version of Fabrik 4. We have also upgraded the Xenforo forum software to the latest version. Many of the widgets you might have been used to on the forum are no longer operational, many abandoned by the developers. We hope to bring back some of the important ones as we have time.

    Exciting times to be sure.

    The Fabrik 4.0 Official release is now available. In addition, the Fabrik codebase is now available in a public repository. See the notices about these in the announcements section

    We wish to shout out a very big Thank You to all of you who have made donations. They have really helped. But we can always use more...wink..wink..

    Also a big Thank You to those of you who have been assisting others in the forum. This takes a very big burden off of us as we work on bugs, the website and the future of Fabrik.

Submit on Enter

gatticlaudio

Claudio
Hello, in my forms I enabled the Submit on Enter option, and it works only by pressing the enter key twice.
What can be?
I use Fabrik version 3.9.10
Thank you.
 
Example : If your form id is 5
create form_5.js file in components/com_fabrik/js
and put this code
Code:
input.addEventListener("keyup", function(event) {
  event.preventDefault();
  if (event.keyCode === 13) {
    document.getElementById("fabrikSubmit_5").click();
  }
});
replace 5 with your form id
 
But the Submit on Enter option does not fulfill that function fairly?
In another way, for each form I will have to do the js ... !!!!!
 
Mahmoodee:
I made the js indicated and it didn't work ... it's like I ignored it.....
Sorry I copy the incorrect code from my website .
this is the correct one
Code:
jQuery(document).ready(function() {
  window.addEventListener("keyup", function(event) {
    event.preventDefault();
  if (event.keyCode === 13) {
    document.getElementById("fabrikSubmit_5").click();
  }
  })
});
 
mahmoodee
Now it worked.
This will involve me doing a js for each form wherever I want that functionality.
Now, I would like to know why the "Submit on Enter" option does not work ....
Thank you
 
We are in need of some funding.
More details.

Thank you.

Members online

Back
Top