Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
Ajax like swap landing page content on form submission
SOLVE
Esteemed Contributor
May 14, 2019 7:26 AM
How can I go about detecting when a form has been submitted on a landing page. This is so I can trigger change the content?
This might be replacing the submitted form or call to action with new content.
Is there a form javascript event I can listen for?
I'm currently using a the form module.
Thanks
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
1 Accepted solution
Accepted Solutions
Solution
Esteemed Contributor
May 16, 2019 4:18 AM
I found a solution that looks for a particular event to take place here:
https://integrate.hubspot.com/t/how-to-track-form-submission-events-in-javascript/1741/2
$('.hs_cos_wrapper_type_form').on('hsvalidatedsubmit', '.hs-form', function (e) { //do something });
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
Reply