APIs & Integrations

iframewoes
Member

Passing hidden fields on Wix Site

Attempting to bring our legacy form functionality into HS Forms.
I am unable to figure out how to pass data using onFormReady using a Wix iFrame holding the HS Form.
Code:

	<table border="0"  width="100%" ><tr><td>


	<script charset="utf-8" src="//js.hsforms.net/forms/current.js"></script>
	<script>
	  hbspt.forms.create({
		portalId: "XXXXXX",
		formId: "XXXXXX",
		onFormReady: function($form) {
			$('input[name="firstname"]').val('Brian').change();
									 }
						});

	</script>
	<!-- End of HubSpot Embed Code -->
	</td></tr></table>

Thank you in advance for your help!

0 Upvotes
2 Replies 2
andyrobertson1
Contributor

Passing hidden fields on Wix Site

Did you ever get this working?

 

Looking to do something similar

0 Upvotes
Derek_Gervais
HubSpot Alumni
HubSpot Alumni

Passing hidden fields on Wix Site

Hi @parzival,

I'm not entirely clear on the situation; could you send a link to the page in question?

0 Upvotes