Nintex Form closed after Enter


Badge +2

Hi,

I have a strange behavior in all my Nintex Forms. If I open the Nintex Form and the Focus is set in one TextBox the Form will be closed after clicking Enter. Is there a possibility to disable this?

best regards


2 replies

Badge +17

Can you provide a screenshot of your form?

Also what browser are you using?

Badge +2

Hi Eric,

I resolved the Problem with Custom Javascript

// Disable closing Nintex Form if onkeydown (Enter)

$(function () {

    $(':text').bind('keydown', function (e) {

        //on keydown for all textboxes

        if (e.target.className != "form-textbox") {

            if (e.keyCode == 13) { //if this is enter key

                e.preventDefault();

                return false;

            }

            else

                return true;

        }

        else

            return true;

    });

});

Reply