Utilizing the same Form API on different pages
I am submitting on behalf of a customer:
The team is utilizing the a Form API to pass form data over to HubSpot. However, they are now utilizing the same form on different pages, but the pageUrl parameter seems to be using the old page even though the submission came in from the new page.
The customer will like to know what is the best practice to handle such situation:
- How to better make the pageUrl parameter dynamic so that it takes on the actual Page URL?
- Or is it better to create separate Form API for each page?
Thanks team for the help!