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.
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 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!