Reply
Newbie
Boggy
Posts: 1
0

Submit web-to-lead and display thank you message in-page

I have a web-to-lead form that I need to submit and show a confirmation/thank you message in the same page without refresh. I tried using replaceWith() and hide() show() while removing the retURL from the hidden input of the form with no success. The form submits the information but the page refreshes without showing the thank you DIV OR it never submits the form (ie. if I use return false; before the form submits, I can replace the div onSubmit but the information is never sent over to SF).

 

Any input?