Learn how to add forms to your HubSpot website or external pages using modules, HubL, or the embed code. Then, learn about how to style them.
dnd_module
.
module
.
<section>
tag with styling to add the color as a background:
<section>
tag around the HTML content, then include styling to reference the color field, such as:<section style="background:{{ module.color_field.color }}">
fields.json
file locally to include the following fields:
Parameter | Type | Description |
---|---|---|
disable_inline_form_editing | String | Set the disable_inline_form_editing property to true to hide all inline form editing controls in the form module. This includes the form fields, submit button text, data privacy and consent options, and CAPTCHA. |
required_property_types | Array | An array that specifies which forms can be selected based on the property types of the form fields. Values include: "CONTACT" , "COMPANY" , and "TICKET" . |
Parameter | Type | Description |
---|---|---|
portalId | Number or string | The ID of the HubSpot account that the form was created in. This is used to retrieve the form definition. |
formId | String | The form’s ID, which is used to retrieve the form definition. |
region | String | The region of the account where the form was created. This is used to retrieve the form definition. Possible values are na1 or eu1 . |
locale
parameter. You can also add custom languages or override the error messages and date picker months/days displayed on the form using the translation
parameter.
Learn more about internationalization and form validation error messages in the forms reference documentation.