Multiple Contacts
DepositFix allows you to use the same form to purchase multiple of the same product under multiple contacts.
First, on your original HubSpot form, add the contact property Billing Contact
to your HS form, and mark it as hidden (this is needed to send the billing contact details with each purchase)
![](https://www.notion.so/image/https%3A%2F%2Fd29l98y0pmei9d.cloudfront.net%2Farticle%2F1343%2F17743145-e19b-4b36-9d7a-091023a82980.gif?table=block&id=28bf8c58-dfb5-48f7-acb9-5732793915fb&cache=v2)
Once you've done that, you can then specify the fields you want to save when you change the quantity; you can do this by adding the following code to your DepositFix form embed code:
settings: {
multipleContacts: {
fields: ['email']
}
}
Where 'email' is the field name, which of course, can be changed depending on which fields you'd like to appear.
To demonstrate the behaviour of this, let's have a look at this form for example:
![](https://www.notion.so/image/https%3A%2F%2Fd29l98y0pmei9d.cloudfront.net%2Farticle%2F1343%2Fa2290f94-e18a-49ff-b78c-bde0d006f3b8.gif?table=block&id=a367ab27-bf88-40ac-9255-dc14eca1446e&cache=v2)
You can see how the behavior changes when you change the quantity, so if you select 2, it will add a field for a second email; if you select 3, it will add two additional fields for two additional emails, etc.
Here's an example of the full embed code of the form mentioned above:
<script src="https://widgets-test.depositfix.com/v1/app.min.js"></script>
<script type='text/javascript' id='df-script'>
DepositFixForm.init({
formId: 'dffe7ade-d8d3-483f-8913-299b98e1832a',
portalId: '4802805',
settings: {
multipleContacts: {
fields: ['email']
}
}
});
</script>
![](https://www.notion.so/image/https%3A%2F%2Fd29l98y0pmei9d.cloudfront.net%2Farticle%2F1343%2F6ff68e49-9030-4e0f-9f20-6729a45687b9.png?table=block&id=58fc968e-c304-43d1-b53c-cc919fd67405&cache=v2)