Having onkeypress="return event.keyCode != 13;" by default for Server Connect Form

Just a suggestion. This is to prevent default form submission on enter so that it won’t conflict with App Connect dmx-on:keypress.enter behaviour.

This worked for me. I’m just putting this solution here so if someone needs it they can copy and paste (can’t copy post titles).

onkeypress="return event.keyCode != 13;"
1 Like

One more note on this. That code actually stops returns from being used in textareas as well. This worked to stop the form from submitting on enter, and also allows return in textareas…

$('input, select').keypress(function(event) { return event.keyCode != 13; });