How to ensure form button doesn't transverses to next page until validation of the form are met? | Community
Skip to main content
Level 3
July 26, 2017
Solved

How to ensure form button doesn't transverses to next page until validation of the form are met?

  • July 26, 2017
  • 1 reply
  • 2149 views

Hi,

I am creating a webform in which few fields have some validation which is getting validated through javascript on click of the form button. Validation happens , error messages pops up but webforms navigates to next page.

I have written below code on the button:

<input class="button submit_btn" id="input149329043626377" type="image" src="https://server.com/res/btn-submit-OfferFeedbackLP.png" value="Submit" data-nl-bindto="action" data-nl-transition="next" data-nl-action="next" />

What should be the attribute/code to be written to ensure, on click of button, it stays on the same page with error message in which all validations aren't satisfied?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by david--garcia

Try the solutions listed under the following thread which is very similar to yours Getting to a Web App next page using a script

1 reply

david--garcia
david--garciaAccepted solution
Level 10
July 31, 2017

Try the solutions listed under the following thread which is very similar to yours Getting to a Web App next page using a script