OneForm

OneForm: Setup Guide (DRAFT)

OneForm lets one person register their whole household with one embeddable form. It creates a HubSpot contact for the submitter, their spouse, their children and, if you turn it on, emergency contacts. It links them with the association labels Spouse, Parent/Child and Emergency Contact.

1. Requirements

2. Install

  1. Click Install on the OneForm marketplace listing.
  2. Pick your HubSpot account and approve the permissions listed below.
  3. During install, OneForm finds or creates the family labels it needs (see section 4).

3. Permissions (scopes) and why we need them

Scope What it means in plain words
oauth Lets you connect the app to your HubSpot account securely, without sharing your password.
crm.objects.contacts.read Lets the app look up existing contacts so it can match family members and avoid duplicates. It also lets the app read your existing labels and contact properties.
crm.objects.contacts.write Lets the app create and update contacts for each family member and link them with family labels.
forms Lets the app send the submitter's details through your HubSpot form, so HubSpot records that person's form submission and any marketing opt-in.

4. How family labels are chosen and reused

5. Creating a form

Use the OneForm settings page inside HubSpot to list, create, update, or delete forms. The form builder lists, creates, and updates forms; you can choose fields and allowed websites there and copy the embed code. Delete is available on the settings page and through the shared API. Forms can also still be created with the admin API or CLI.

When you create a form, you'll set:

The form builder shows your embed code after the form is saved.

Please don't map health details (for example allergies) or other sensitive information to contact properties until HubSpot's sensitive-data terms have been reviewed. TODO (Product): confirm sensitive-data guidance

6. Embedding

Paste this code where the form should appear. Use the form ID we give you.

<div data-household-form="FORM_ID"></div>
<script src="https://household-forms.onrender.com/widget.js" async></script>

7. Test with a sample family

  1. Open the page that has the form and submit a made-up family: you, a spouse and two children, using test email addresses.
  2. In HubSpot, open the submitter's contact. You should see the spouse and children linked with family labels.
  3. Open a child's contact. Both parents should be shown as "Parent".
  4. Submit the same family again. The existing contacts should be reused.
  5. The form submission and any opt-in appear only on the submitter's contact.

How matching works:

Built-in protections:

8. Uninstalling

9. Support

Email TODO: support email. See the Support page for what to include in your request.