Salesforce Asked by Stacy on February 11, 2021
I have a web collect form that will be used in a light box modal for email capture. On the form submission I have a function to hide the div
that contains the form and display the thank you div
but it still redirects to an ExactTarget “Thank You” page before it has a chance to display the div
. If I go back, the thank you div
is displayed but I need to stop the redirect altogether. This there a way to stop this?
Here is an example of where the redirect is happening:
<form action="http://cl.exct.net/subscribe.aspx?lid=ExampleListID" method="post" id="signup" onsubmit="switchVisible()">
Add your landing form page URL as your success URL.
Answered by suhas ganjare on February 11, 2021
In the end of your function, you should to avoid the default action - Submit, use Jquery:
function yourFunction(event) {
// Your codes here.
event.preventDefault();
}
Hope can help you.
Answered by Leisure on February 11, 2021
Here is the documentation on the SFMC/ExactTarget Web Collect functionality.
You can specify the Thank You
and Error
URLs -- if that helps.
You don't have to do a traditional form POST with a redirect. You can do it all with AJAX and parse the results.
Answered by Adam Spriggs on February 11, 2021
Get help from others!
Recent Questions
Recent Answers
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP