# Combined Forms

**URL:** <https://community.hubspot.com/t/combined-forms/124895>\
**Category:** CMS Development\
**Tags:** starter\
**Created:** [January 28, 2025, 8:32am UTC](https://community.hubspot.com/t/combined-forms/124895 "2025-01-28T08:32:55Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![SBhatti](https://avatars.discourse-cdn.com/v4/letter/s/b3f665/32.png) [@SBhatti](https://community.hubspot.com/u/SBhatti)\
**Post date:** [January 28, 2025, 8:32am UTC](https://community.hubspot.com/t/combined-forms/124895/1 "2025-01-28T08:32:55Z")

</div>

Hi

I have two forms in Hubspot, I want to create one form, but when this one form is submitted Hubspot records a submission for the first two forms. Is this possible? I was thinking to create a landing page to hold both forms and using a custom modle to code this, but it doesnt seem to be working. Any sugestions? Thank you.

---

<div class="post-metadata">

**Author:** ![GRajput](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/grajput/32/102020_2.png) [@GRajput](https://community.hubspot.com/u/GRajput)\
**Post date:** [January 28, 2025, 10:22am UTC](https://community.hubspot.com/t/combined-forms/124895/2 "2025-01-28T10:22:31Z")

</div>

Hi @SBhatti

Yes, one way to do that you will need the both the form’s embed code. Keep the second form hidden by setting its display:none . In the first form embed code use the onFormSubmit callback function where you will have to map the values of form one fields to form two fields (If there are any). Then on submit of the first form you will submit the second one as well.  
Here is the **[doc](https://developers.hubspot.com/docs/reference/cms/forms)** with details about the callback for the form.

I hope this will help you out. Please mark it as **Solution Accepted and upvote** to help another Community member.  
Thanks!

---

<div class="post-metadata">

**Author:** ![SBhatti](https://avatars.discourse-cdn.com/v4/letter/s/b3f665/32.png) [@SBhatti](https://community.hubspot.com/u/SBhatti)\
**Post date:** [January 28, 2025, 3:19pm UTC](https://community.hubspot.com/t/combined-forms/124895/3 "2025-01-28T15:19:46Z")

</div>

Thank you, I still can’t see where I am going wrong with this, can I share the code?
