- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
Can I trigger inserting the form into the DOM?
06-17-2019 09:13
Background: I'm creating a blog for a client. The blog post has the option to enable a lead capture form below (using a Form tag) and it also automatically loads the next post when you reach the bottom of the page (using an Infinite Scroll plugin).
Problem: because I assume there's no DOM load for the second page (it just pulls in a container and adds it on to the existing document), the forms on the second post onward do not load.
Question: is there a way to trigger loading the forms? Some sort of event listener that I can use to call for the forms to be loaded on the second post onward? Or perhaps someone has an alternative solution.
Thank you!
Stephanie O'Gay Garcia
HubSpot CMS Design & Development
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content