• Resolved Blair

    (@cbcbcb)


    I assumed the form entry would only get submitted if you hit the SUBMIT button,
    however if a user hits their return or enter keyboard key the form is submitted.

    Here’s why that is a problem:

    I have a form that only makes the submit button visible upon my conditions being met.

    The result is people being able to skirt by my conditions and submit anyway.

    Is this a known issue?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Saurabh – WPMU DEV Support

    (@wpmudev-support7)

    Hey there @cbcbcb thank you for contacting us.

    I’m really sorry for the inconvenience on this one, I did a quick test on my end and was able to reproduce this behavior.

    I have sent this information to the developer and will update you here when we receive a reply.

    Let us know if you have any further questions.

    Jorge.

    Plugin Support Saurabh – WPMU DEV Support

    (@wpmudev-support7)

    Hey there Blair, Jorge here following up.

    Our developers are taking a look at this as because at the moment that’s the behavior of the form.

    As a workaround, you can use the following code to disable submit on enter:

    jQuery( document ).ready( function ( $ ) {
        $( 'form' ).keypress(
      		function(event){
            	if ( event.which == '13' ) {
              		event.preventDefault();
            	}
        	}
    	);
    } );

    Hope this helps, let us know if you have any further questions.

    Have a great weekend!

    Jorge

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Form Submits Just By Hitting Return Key’ is closed to new replies.