Passing hidden fields on Wix Site


#1

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!


#2

Hi @parzival,

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