Post url Form Data into a 3rd Party Form

NWilliams9
Participant

I’m trying to post form data TO a 3rd party form via HTTP Post but I can’t find out the first step in how. Please help! Thank you so much in advanced.

0 Upvotes
2 Replies 2
dbeau79
Contributor | Diamond Partner

@NWilliams9 , more info would be helpful but I think your first step will  be to setup a global form event like this:

 

window.addEventListener('message', event => {
   if(event.data.type === 'hsFormCallback' && event.data.eventName === 'onFormSubmit') {
       <!-- Code that posts to your 3rd party form here -->
   }
});
dennisedson
Community Manager

@dbeau79 has been working with the forms API and might be able to add some insight for you, @NWilliams9 

It might be helpful to add some details about your setup.

Thanks,

Dennis




Check out our Community Developer Blog
where we feature our Community driven developer podcast and how to content
0 Upvotes