We're looking to take results from an interactive online calculator and push it into a Hubspot form, so users can then receive an email containing their results. Anyone know the best way to do this?
Your page was developed with the object tag so I think you'll need a function to traverse that DOM like an iframe and pull the data from the fields with the ids of "roi" and "avg_monthly_benifit" and populate the hidden fields in your form with said data.
To fire this function I would imagine might be the user filling out the contact form with the hidden fields. I might use a on change event to trigger the function. This would ensure that the data is caputred before the form is submitted.
Word of caution:
The mentioned funciton and event above will trigger whether or not the user actually used the calculator.
Thanks, Kevin! This is what Marketo told me when we were using them. My question is, how do we get the hidden form to pull information from the calculator?
Your page was developed with the object tag so I think you'll need a function to traverse that DOM like an iframe and pull the data from the fields with the ids of "roi" and "avg_monthly_benifit" and populate the hidden fields in your form with said data.
To fire this function I would imagine might be the user filling out the contact form with the hidden fields. I might use a on change event to trigger the function. This would ensure that the data is caputred before the form is submitted.
Word of caution:
The mentioned funciton and event above will trigger whether or not the user actually used the calculator.