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

Question

Question

HTML Buttons in Forms

asked on July 1, 2021

Hi guys. I have a trouble with the HTML field because I´m making a new button that shows a message, but, when I click on it, the message appears but refresh the page as the Forms "Submit" button.

How can I do the page does not refresh, only when I click on HTML buttons created by me?

0 0

Replies

replied on July 1, 2021

Your HTML button needs a type attribute otherwise it usually defaults to "Submit"

<button type="button">Click Me</button>

1 0
replied on July 1, 2021

Thanks Jason. I could solve it with your support. 

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

Sign in to reply to this post.