Formcrafts - a form and survey platform for Salesforce, HubSpot, etc
  1. Templates
    1. All templates illustration
      All templates
    2. Application forms illustration
      Application forms
    3. Calculation forms illustration
      Calculation forms
    4. Lead generation forms illustration
      Lead generation forms
    5. Customer service illustration
      Customer service
    6. Evaluation forms illustration
      Evaluation forms
    7. Survey and feedback illustration
      Survey and feedback
    8. Operations forms illustration
      Operations forms
    9. Payment forms illustration
      Payment forms
    10. Booking and registration illustration
      Booking and registration
    11. Salesforce forms illustration
      Salesforce forms
    12. Other forms illustration
      Other forms
  2. Features
    1. 18 Form Fields illustration
      18 Form Fields
    2. 19 Integrations illustration
      19 Integrations
    3. Conditional Logic illustration
      Conditional Logic
    4. Multi-step Forms illustration
      Multi-step Forms
    5. Calculations illustration
      Calculations
    6. Partial Submissions illustration
      Partial Submissions
    7. Save & Resume illustration
      Save & Resume
    8. Payments illustration
      Payments
    9. Hidden Fields illustration
      Hidden Fields
    10. Dynamic Dropdowns illustration
      Dynamic Dropdowns
    11. Engagement analysis illustration
      Engagement analysis
    12. Multilingual forms illustration
      Multilingual forms
  3. Pricing
  4. Help
  5. Login
  6. Signup
    →
  • Help index
  • Features
    • Conditional logic
    • Prefill forms
    • Multi-step forms
    • Calculations
    • Partial submissions
    • Field references
    • Save and resume
    • Hidden fields
    • Dynamic lookup
    • Workflows
    • Dynamic dropdowns
    • Multilingual forms
    • Privacy mode
    • Success message
    • Form redirect
    • GA/GTM
    • Accept payments
    • Linked forms
    • Disable form
  • Styling
    • Custom CSS
    • Custom fonts
    • Color scheme
    • Form background
  • Analytics
    • Test mode
    • Overview
    • Field analytics
    • Form engagement
  • Workflows
    • Send emails
    • Form redirect
    • Success message
    • Webhooks
    • Create PDF
    • ActiveCampaign
    • Asana
    • Mailchimp
    • Front app
    • Freshdesk
    • Google Sheets
    • Pipedrive
    • Linear
    • Klaviyo
  • Sharing
    • Custom form link
    • Embed on a page (inline)
    • Embed on a page (popup)
    • Embed in emails
    • Embed on WordPress
    • Embed on Shopify
    • Embed on Squarespace
  • Salesforce
    • Overview
    • Create records
    • Update records
    • Related records
    • Dynamic picklists
    • Attach files
    • Create PDFs
    • Form prefill
  • HubSpot
    • Overview
    • Create contact form
    • Create lead capture form
    • Create customer survey
    • Prefill HubSpot form
    • Embed on HubSpot page
    • Uninstall
  • Zendesk
    • Create ticket form
    • Create CSAT survey
    • Embed on Help Center
    • Prefill ticket form
  • Admin
    • Users
    • Custom domain
    • Vanity subdomain
    • Subscription
  • Developers
    • Embed Library
    • API keys
    • API v1
    • API v2
  • Others
    • Partner program
    • GDPR compliance
    • Workflow logs
    • White labeling
    • Form speed
    • Zapier
    • Migration
  • Contact
  1. Help
  2. ›
    HubSpot
  3. ›
    Create lead capture form

Create a HubSpot Lead Capture Form

On this page
  1. Introduction
  2. Create a new form
  3. Create the contact workflow
  4. Create the deal workflow
  5. Use conditional logic
  6. Save and test
  7. Notes
    1. Company / ticket objects
    2. Read-only forms
    3. Conditional workflows
    4. Embed on a HubSpot page

Introduction

In the previous tutorial we learnt how to create a simple contact form that turns new responses into HubSpot contacts.

In this tutorial we will create a lead capture quotation request form with additional features:

  • It will be a multi-step form.
  • It will use workflows to create a new deal in HubSpot.
  • It will also create a HubSpot contact, or update an existing one.
  • It will associate the new deal with the contact.
  • Any file uploaded with the form will be attached to the deal in HubSpot.
  • We will use conditional logic to calculate a deal value.

Create a new form

On your Formcrafts dashboard ↗ click on Add Form → Start from scratch. Enter a Form name and hit enter. This will create a new form.

You can also create a new form by clicking on Add Form → Use a Template and selecting a template. This would allow you to skip this step. We have a large collection of lead generation form templates ↗ that you can use.

Now add some basic fields to your form using the Add field button on the top-left corner of the form editor:

  1. Quotation request (Rich text)
  2. First name (One line input)
  3. Last name (One line input)
  4. Your phone number (Phone)
  5. Your email (Email)

Now click on Add step, and then add a few more fields for the second step:

  1. Installation type (Multiple choice)
  2. Details (Comment)
  3. Building plan (File upload)
  4. Deal value (Hidden)

Our two-step form in the form editor should look like this:

HubSpot lead capture form step 1
Personal details
HubSpot lead capture form step 2
Installation details

Create the contact workflow

Click on the Workflows button on the top-left corner of the form editor, and then click on the Add workflow button.

Now edit the new workflow, and click on Add action. Under (select action) find HubSpot.

Click on Connect to HubSpot and proceed to authenticate your HubSpot account.

Set the Action to Create or update a Contact.

Use the Field mapping section to map form fields to their respective contact fields in HubSpot:

Workflow to create a HubSpot contact
HubSpot contact creation workflow

We have simply mapped the form fields to the contact fields in HubSpot, using the @ key to reference the form fields.

Create the deal workflow

In the same workflow click on Add action again, and select HubSpot. Set the action to Create a deal.

A workflow can have multiple actions, and they are executed in the order they are listed. This means that the contact creation action will be executed before the deal creation action, and the contact will be available to associate with the deal. You can re-order the actions by dragging them up or down.

The Field mapping section should look like this:

Workflow to create a HubSpot deal
HubSpot deal creation workflow

The form field Your email is mapped to the Associated Contact. This will associate the new deal with the contact created in the previous action.

We have mapped a combination of plain text and field reference (Quote - @Installation type) to Deal Name. This will create a deal with a name like “Quote - Personal”.

We have mapped Detail to Deal Description.

We have mapped Deal value to Amount.

We have also selected the appropriate Deal pipeline and stage, and checked the Attach files to the deal checkbox.

Use conditional logic

The deal value is empty in the form editor, but we can use conditional logic to calculate it. If Installation type is Personal we want the deal value to be 2000, and if it is Business we want the deal value to be 5000.

Click on the Conditional logic button on the top-left corner of the form editor, and add these logic steps:

Conditional logic to set hidden field value
Conditional logic steps

Conditional logic in Formcrafts can also be used to show or hide fields, show or hide entire steps, disable the form, or change options in a field. Learn more about conditional logic.

Save and test

Click on the Preview button on the top-right corner of the form editor, and submit the form to test the workflow.

Formcrafts keeps a record of all successful and failed workflows which you can view using the Logs button on the top-left corner of the form editor.

Learn more about Workflow logs.

Notes

Company / ticket objects

This tutorial covers creating a deal and a contact, but the HubSpot workflow can also be used to create a company or a ticket. You can add these actions to the same workflow, and map the form fields to the company or ticket fields.

Read-only forms

When you create a form and use a HubSpot contact workflow, we create two read-only forms in your HubSpot account, which you can view in HubSpot under Marketing → Lead Capture → Forms.

One of these forms is a copy of your Formcrafts’ draft form, while the other one is a copy of the live form.

The forms in HubSpot should not be edited, since it can break your workflow.

Copy of Formcrafts form in HubSpot

The advantage of us creating read-only forms in HubSpot is that it allows you to use HubSpot automations ↗ on these read-only forms.

Conditional workflows

By default the HubSpot action(s) is triggered on each form submit. We can add conditions to our workflow to trigger the action(s) only when certain conditions are met. Edit your workflow and click on Add condition. Here you can add conditions, or even create condition groups.

Workflow with a condition
Making workflows conditional

Embed on a HubSpot page

You can embed this form on your HubSpot website or landing page. Learn more about embedding forms on a HubSpot page.

Minimal, fast, and powerful. Try now.
Formcrafts - a form and survey platform for Salesforce, HubSpot, etc

Subtle Web Inc,
225 Railway St E,
T4C 2C3, Cochrane AB

Salesforce AppExchange partner logo HubSpot app partner logo
Templates
Application formsLead generation formsSurvey & feedback formsEvaluation formsSupport request formsBooking & registrationContact forms
Comparisons
vs AllFormAssemblyTypeformJotformWufooSurveyMonkey
Features
Conditional logicSalesforce formsHubSpot formsZendesk ticket formsEmail formsIntegrationsForm fields
Resources
Help centerBlogDeveloper APIGDPRStatusReport abuseContact us
Company
About usNonprofitCase studiesSecurityTerms and privacy