You are viewing limited content. For full access, please sign in.

Question

Question

Added a custom button in my form, it somehow submits the form when clicked

asked on January 26, 2016 Show version history

I added a custom button in the HTML object. When the button is clicked it submits the form. What causes my custom button to call the master submit action, I only have it calling my javascript function. Here is the button.

 

  <button id="start2" onclick="checkAuth()">
  Go
  </button>

 

0 0

Answer

SELECTED ANSWER
replied on January 26, 2016

Add the type attribute to your button

<button id="start2" onclick="checkAuth()" type="button">
Go
</button>
1 0
replied on January 26, 2016

Perfect, thank you!

0 0

Replies

You are not allowed to reply in this post.
You are not allowed to follow up in this post.

Sign in to reply to this post.