APIs & Integrations

ablayze_jb
Participant

Passing data to another embed form after submit?

SOLVE

Hi im trying to create a multi-step form and i have question on how to pass data to another form after submitting it? im using embeded form

Here's my code:
Screen Shot 2022-05-07 at 2.25.17 AM.png

So anyone can give me an idea how to achieve it? I just need to pass the firstname, lastname, phone, email on step2 form (which was hidden on interface for this step)

0 Upvotes
1 Accepted solution
Teun
Solution
Recognized Expert | Diamond Partner
Recognized Expert | Diamond Partner

Passing data to another embed form after submit?

SOLVE

Hi @ablayze_jb ,

 

Your code looks fine, but if you set the value of an input with jQuery, you need to use the .change() function as well, so try this:

jQuery('#firstname-'+formOneId).val(window.localStorage.getItem('hs-firstname')).change();

 



Learn more about HubSpot by following me on LinkedIn or YouTube

Did my answer solve your issue? Help the community by marking it as the solution.


View solution in original post

0 Upvotes
1 Reply 1
Teun
Solution
Recognized Expert | Diamond Partner
Recognized Expert | Diamond Partner

Passing data to another embed form after submit?

SOLVE

Hi @ablayze_jb ,

 

Your code looks fine, but if you set the value of an input with jQuery, you need to use the .change() function as well, so try this:

jQuery('#firstname-'+formOneId).val(window.localStorage.getItem('hs-firstname')).change();

 



Learn more about HubSpot by following me on LinkedIn or YouTube

Did my answer solve your issue? Help the community by marking it as the solution.


0 Upvotes