Skip to main content
HubSpot forms allow you to capture information from website visitors, which you can then access throughout HubSpot. You can share links to forms directly with users, submit form data via the API, and embed them on your website pages using the CMS. Below, find reference documentation for forms, including form embed configuration options, internationalization and validation error messages, and form events.
Please note:
  • This article covers additional functionality you can use for new forms created through the updated forms editor. If you need to consult the corresponding functionality for legacy forms, check out this article instead.
  • If you require a more complex use-case for your form, like sending custom form submission data to HubSpot, you should review the v3 forms REST API documentation.

Global form events

Global form events allow you to extend the functionality of your form and define custom behavior for specific events triggered by your form (e.g., display a custom success message when a user submits a form). Learn more about the available global form events in the reference documentation.

Define custom styling for embedded forms using CSS

You can define CSS variables to override the default styling for your embedded forms. This allows you to apply granular styling to specific elements of your forms, as well as define global styling rules to maintain consistency across all embedded forms.
The CSS variables you can override are listed in the tables below. The global styles will override top-level styling across all your embedded forms. You can also target individual elements of your forms such as a form element row, submit buttons, or form headings.

Global

Row

Button

Rich Text

Heading

Background

Progress Bar

Error Alert

Info Alert

Field Input

Field Textarea

Field Checkbox

Field Radio

Last modified on March 30, 2026