Non-Hubspot Forms - Ignore specific fields

Hi!

We have a non-HubSpot form on our website, it’s a booking form, and it has First Name, Last Name and Email fields for multiple Travellers. Hubspot can’t really handle that, and always ends up merging all the First Name and Last Name fields under a single email (ex: Anna John; Conner Lee).

Is it possible to hide the information from Traveller 2, 3, etc. from being captured by Hubspot?

Hi @SabrinaP93

Thank you for reaching out!

Have you tried to create form fields or labels to match HubSpot default properties or create a custom contact property to match the name or label of your form field?

Thanks

Sharon

Hi Sharon!

Yes, I managed to chat with support yesterday and that’s what I’ve done, it’s working now, thank you:)

Is this still a valid workaround? It’s not working in my experience.

We have a text field (so not even of type email), and regardless of what label/property name we give it, collectedforms.js scrapes the input (so long as the value matches an email pattern) and submits it to HubSpot as just ‘email’, without mapping it.

input:

<label htmlFor="coworker-contact">Coworker contact</label>
<input
 type={'text'}
 name={'coworker-contact'}
 id={'coworker-contact'}
/>

Submission:

{
 "contactFields": { "email": "rob.t@abc.com" },
 "formSelectorClasses": ".OnboardingInvites_form__a3Yzt",
 "formSelectorId": "",
 "formValues": {},
 "labelToNameMap": {},
 //Rest not relevant
}