Fields JSON

Available Fields

Choice

A radio select/pick list option visible in the content editor that lets the marketer select and insert a predefined value into the content of the module.

  • For dropdown select - "display" : "select"

  • For radio buttons - "display" : "radio"

{
	"id" : "",
	"name" : "",
	"label" : "",
	"display" : "select",
	"choices" : [ 
		[ "valueOne", "Label One" ], 
		[ "valueTwo", "Label Two" ], 
		[ "valueThree", "Label Three" ]
	],
	"placeholder" : "",
	"type" : "choice",
	"default" : ""
}

Text

Use this for text sections of your custom module

For a rich text field - "type" : "richtext"

To set placeholder text - "placeholder" : "Placeholder"

For regex"validation_regex" : "/.+\@.+\..+/"

Image

A single image container module that includes sizing options, default image, and alt text parameters

"resizable" : false - will hide resizing options

Number

A spinner style text field that only supports decimal or integer values.

Date

Selects a date. The value is stored as milliseconds since the epoch at midnight UTC on that date.

Date and Time

Selects a date and optional time. The value is stored as millseconds since the epoch in UTC.

CTA

Selects a CTA. Required for CTA module.

Blog

Selects a blog from the portal's list of blogs. Required for Blog Email Subscription, Post Listing and RSS Listing modules.

Tag

Selects a blog tag from the portal. Required for RSS Listing module.

"tag_value" : "SLUG"

"tag_value" : "ID"

Form

Selects a HubSpot form. Required for Form module.

"response_type" : "redirect"

"response_type" : "inline"

Color

Picks a color.

Page

Selects a published website or landing page. Required for form module.

Workflow

Selects a HubSpot workflow. Required for form module.

Follow-up email

Selects a follow-up email.

Email address

Autofills with email addresses from portal users, but also allows any other valid email address. The value is a list of strings.

File

Similar to the image selector, but allows selection of other file types from File Manager. Useful for picking a PDF or image to link to. The picker attribute allows selecting files of certain types.

"picker" : "file"

"picker" : "image"

"picker" : "document"

HubDB Table

Selects a published HubDB table to associate with this module.

Simple Menu

Allows creation of a local simple menu.

Selects a menu from the portal's menu.

Allows selection of a logo

"override_inherited_src" : false

"override_inherited_src" : true

Icon

Allows selection of an icon

Field options

Regex

Use a regular expression to validate a field

"validation_regex" : "/.+\@.+\..+/"

Required

User will not be able to leave this field blank.

"required" : false

Prevent Editing

Prevent editing in content editors allows you to have content that is hidden and uneditable by end users

"locked" : false

Help Text

Add helper text to give users context or instruction.

"help_text": "Your help text"

Display Conditions

Display if another feild meets certain criteria. A set field ID is required Operator Options:

  • Is equal to - "operator" : "EQUAL"

  • Is empty - "operator" : "EMPTY"

  • Is not empty - "operator" : "NOT_EMPTY"

  • Is not equal to - "operator" : "NOT_EQUAL"

  • Custom regex - "operator" : "MATCHES_REGEX"

BUG: Display Conditions don't seem to be working with Group Types, to use Display Conditions with a Group, add the Display Conditions to each field inside the group.

Field Grouping

Group individual fields into one group

Field Repeating

All fields/groups can be repeaters, Groups that are repeaters can use a Sorting Label by adding Note: Group Type fields must have a set id when using a repeater to function properly

"sorting_label_field" : "field-id"

Module Meta Fields

Adding Files

Last updated