Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn more

View all

Sign in to view all badges

SOLVED

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

ckumari12
Level 4
Level 4

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?

1 Accepted Solution
David__Garcia
Correct answer by
Level 8
Level 8

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

View solution in original post

1 Reply
David__Garcia
Correct answer by
Level 8
Level 8

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

View solution in original post