# Passing data to another embed form after submit?

**URL:** <https://community.hubspot.com/t/passing-data-to-another-embed-form-after-submit/56423>\
**Category:** APIs & Integrations\
**Tags:** developer-tools, forms\
**Created:** [May 6, 2022, 6:27pm UTC](https://community.hubspot.com/t/passing-data-to-another-embed-form-after-submit/56423 "2022-05-06T18:27:39Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ablayze\_jb](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/ablayze_jb/32/88643_2.png) [@ablayze\_jb](https://community.hubspot.com/u/ablayze_jb)\
**Post date:** [May 6, 2022, 6:27pm UTC](https://community.hubspot.com/t/passing-data-to-another-embed-form-after-submit/56423/1 "2022-05-06T18:27:39Z")

</div>

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](https://d2qpr2jzcazej7.cloudfront.net/original/3X/2/b/2b4cf8cf1691eb16139170ddd38270a48b8c2062.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)

---

<div class="post-metadata">

**Author:** ![Teun](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/teun/32/28739_2.png) [@Teun](https://community.hubspot.com/u/Teun)\
**Post date:** [May 9, 2022, 7:54am UTC](https://community.hubspot.com/t/passing-data-to-another-embed-form-after-submit/56423/2 "2022-05-09T07:54:07Z")

</div>

Hi [@ablayze\_jb](https://community.hubspot.com/t5/user/viewprofilepage/user-id/204041) ,

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();`
