Skip to content

Form builder

The form builder is where you design a form and decide what happens with its answers. Open it from Marketing › Forms by clicking a form (URL /t/<workspace>/forms/<formId>); it is the Builder tab of the form.

The page has:

  • a toolbar with the form Name, the Active/Inactive switch and the Save button;
  • five tabs: Fields, CRM, Settings, Style and Embed;
  • a Live preview panel on the right (below the tabs on narrow screens) that renders the real form widget with your unsaved changes.

Users without forms:write can open the builder, but every input is read-only and the Save button is hidden.

Everything you edit in the builder is one document made of four parts, saved together when you click Save:

Part Edited in Contains
Fields Fields tab The ordered list of fields, each with its type, key, label, validation, prefill, visibility rules and contact mapping.
CRM CRM tab Whether submissions create contacts, the update policy, lead source, owner, tags and app validation.
Settings Settings tab Button texts, what happens after submit, language, allowed websites, Turnstile, hosted page.
Style Style tab Colors, sizes, fonts and custom CSS of the widget.

The document is validated in the browser while you type and again on the server when you save.

  • Changes are not saved automatically. The Save button turns active as soon as something changes, and shows Saved when there is nothing to save.
  • Save stays disabled while the definition is invalid or the name is empty. The first problem is shown in a red box above the tabs, as path: message (for example fields.3.key: duplicate field key).
  • If you try to leave the page with unsaved changes, the browser asks you to confirm.
  • Embeds and the hosted page always use the last saved version. The live preview uses the unsaved one.

A Step break field splits the form into steps. The fields before the first break form step 1, and so on. The label of a break is the title of the step that follows it. The visitor sees “Step N of M”, a Next button on every step but the last, a Back button from step 2 onwards, and the submit button on the last step. Each step is validated before moving on. Steps that end up with no fields are skipped.

Every field except a step break can have Show only if rules. All rules must be true (AND); with no rules the field is always shown. A rule compares the value of another field with an operator:

Operator Label True when
equals is The value (as text) equals the rule value exactly.
not_equals is not The value differs from the rule value.
contains contains Text: contains the rule value, case-insensitive. Multiple choice: one of the chosen options equals the rule value.
any_of is any of The value is one of the comma-separated rule values (for multiple choice: at least one chosen option is).
filled is filled The field has a value (a checked box counts, an unchecked one does not). The value input is disabled.
empty is empty The field has no value. The value input is disabled.

Compare option fields with the option value, not its label. Checkboxes and consents have the value true when checked. A field that depends on a hidden field is hidden too. Values of hidden fields are dropped and never validated, so a required field is only required when it is visible. You can add up to 10 rules per field.

  1. In the Fields tab, click Add field under the field list and pick a type (the full list is in Field types).
  2. The new field is added at the end and selected. Its label is the type name; its key is derived from the label and made unique (short_text, short_text_2…).
  3. Use the arrow buttons (Move up, Move down) on a row to reorder, and the bin (Remove field) to delete it.
  4. Each row shows the label (or the key), a red * when required, the type, the key, a → target badge when the field is saved to the contact and a Conditional badge when it has visibility rules.
  1. Click a row in the field list. The right card (titled with the field type) shows its properties. With nothing selected it says “Select a field to edit it.”
  2. Fill Label and, for value fields, Key. The key is “Name of the value in submissions, webhooks and merge tags”: lowercase letters, digits and underscores only (other characters are converted to _ as you type), it must start with a letter and be unique in the form.
  3. Set the type-specific options, prefill, default value and Save to contact as described in Field types.
  4. Toggle Required, Half width and Sensitive (left out of notifications and automations) as needed.
  5. Add Show only if rules with Add condition: choose the source field, the operator and the value. Remove a rule with its Remove condition button.
  6. Click Save in the toolbar.
  1. Select a value field and open Save to contact.
  2. Choose a contact attribute (Email, First name, Last name, Phone, Company, Job title, Website, address parts) or Custom field: <label> for one of your contact custom fields. Do not save keeps the answer on the submission only.
  3. Each attribute can be used by one field only: attributes already mapped by another field disappear from the list.
  4. Make sure at least one field maps to Email or Phone: without them no contact is created.

New Email and Phone fields are mapped to the contact email and phone automatically when no other field already uses them.

  1. Open the CRM tab. The intro reads: “Each submission creates the contact, or updates the one with the same email (or phone), then triggers automations.”
  2. Keep Create or update a contact from the mapped fields on (default) to write to the CRM. Turn it off to only store submissions and run connections.
  3. Choose Existing contacts: Fill empty fields only (“Values already on the contact are kept.”, default) or Overwrite with the submission (“Mapped fields replace the values on the contact.”).
  4. Optionally pick a Lead source (set on contacts that have none) and an Owner of new contacts (also set on existing contacts without an owner). None leaves them untouched.
  5. Pick Tags to apply: “Applied to the contact on every submission.”
  6. If an installed app validates emails or phone numbers, the Email/phone check by apps field appears. See the reference below.
  7. Click Save.

The footer note reminds you that “UTM parameters, referrer, page and the analytics visitor are captured automatically and saved on new contacts.” What exactly happens to the contact is described in Submissions.

  1. Open the Settings tab.
  2. Optionally rename the buttons: Submit button, Next button, Back button (“Empty: default text in the visitor’s language.” — Submit/Invia, Next/Avanti, Back/Indietro).
  3. Choose After submit: Show a message (then write the Thank-you message; empty uses “Thank you! Your submission has been received.”) or Redirect to a page (then enter the Redirect URL, http or https).
  4. Choose the Language of the widget texts: Visitor’s browser (default), English or Italian.
  5. Optionally restrict Allowed websites (see Embedding and hosting).
  6. Turn on Require the anti-bot check (Turnstile) if you want a Cloudflare Turnstile challenge.
  7. Keep Public hosted page on to serve the form at its own link, or turn it off to allow only embeds.
  8. Click Save.
  1. Open the Style tab.
  2. Set colors with the color picker or by typing any CSS color (#4f46e5, rgb(…), transparent…).
  3. Set sizes as CSS lengths (8px, 1rem, 100%).
  4. Add Custom CSS for anything else. It is “Scoped to the form. Classes: .af-root, .af-field, .af-input, .af-button…”.
  5. Watch the Live preview and click Save.

The Live preview renders the real widget with the unsaved definition. A yellow notice says “Preview — submissions are disabled.” Submitting in the preview only validates the fields and then shows the thank-you message; nothing is sent. If the preview cannot load it says “The preview could not be loaded.”

Control Effect
Name input Internal name, 1–200 characters.
Active / Inactive switch Whether the form accepts submissions (applied when you save).
Save / Saved Saves name, status and definition.
Field Options Default Notes
Create or update a contact from the mapped fields On / off On Off: no contact, no tags, but the form.submitted event and connections still run.
Existing contacts Fill empty fields only, Overwrite with the submission Fill empty fields only Applies only when a matching contact exists.
Email/phone check by apps Advisory, Blocking Advisory Only shown when an active installed app offers contact validation. The hint names the apps. Advisory: the apps only “tag or annotate contacts; submissions are always accepted.” Blocking: submissions the apps mark invalid are rejected with a field error; “If an app does not answer in time the submission is accepted.”
Lead source Your lead sources or None None Set only on contacts without a lead source.
Owner of new contacts Workspace members or None None Also fills existing contacts without an owner.
Tags to apply Your CRM tags None Up to 50 tags.
Field Limits Default
Submit button 100 characters Empty (Submit / Invia)
Next button 100 characters Empty (Next / Avanti)
Back button 100 characters Empty (Back / Indietro)
After submit Show a message, Redirect to a page Show a message
Thank-you message 2,000 characters Empty (default thank-you text)
Redirect URL http/https URL Empty
Language Visitor’s browser, English, Italian Visitor’s browser
Allowed websites Up to 50 domains, comma or space separated Empty (any website)
Require the anti-bot check (Turnstile) On / off Off
Public hosted page On / off On

With Visitor’s browser, the widget uses Italian when the first supported browser language is Italian and English otherwise.

Field CSS default Applies to
Accent #4f46e5 Submit button, focus ring, required asterisk, selected stars, checkbox color, links
Text #111827 Text of the form
Background transparent Form background
Input background #ffffff Inputs, text areas, dropdowns
Borders #d1d5db Input borders, empty stars
Button text #ffffff Text of the submit button
Corner radius 8px Inputs, buttons, messages
Font size 15px Base font size
Spacing 14px Gap between fields
Max width 560px Maximum width of the form (centered)
Font family system-ui, -apple-system, Segoe UI, sans-serif Whole form
Custom CSS Empty Extra rules, up to 20,000 characters

Style values are limited to 200 characters and cannot contain {, }, <, >, ; or \; custom CSS cannot contain <. The built-in rules have zero specificity, so your custom CSS always wins.

Useful classes for custom CSS: .af-root, .af-form, .af-field, .af-half, .af-label, .af-req, .af-desc, .af-input, .af-textarea, .af-select, .af-choices, .af-choice, .af-rating, .af-star, .af-heading, .af-html, .af-step-title, .af-progress, .af-error, .af-alert, .af-actions, .af-button, .af-secondary (the Back button), .af-success, .af-turnstile. Every field also has the class .af-<type> (for example .af-email) and .af-invalid while it shows an error.

Message Meaning
duplicate field key Two fields share the same key.
duplicate field id Two fields share an internal id (only possible through the API).
add at least one option A Dropdown, Single choice or Multiple choice field has no options.
this field collects no value A heading, HTML block or step break is mapped to the contact (API only).
another field already maps to this attribute Two fields save to the same contact attribute.
unknown field A visibility rule points to a field that no longer exists or to the field itself.
lowercase letters, digits and underscores The key has invalid characters.
invalid CSS value / invalid CSS A style value contains a forbidden character.
  • Viewing the builder needs forms:read; saving needs forms:write.
  • Up to 150 fields per form, 200 options per field, 10 visibility rules per field.
  • Labels up to 500 characters, help texts up to 2,000, placeholders up to 200, HTML blocks up to 20,000.
  • The tags, lead source and owner you pick must still exist when you save; deleted tags are skipped at submit time with a warning on the submission.
Symptom Cause Fix
Save stays disabled. Nothing changed, the name is empty, or the definition is invalid. Read the red message above the tabs and fix the field it points to.
A field is missing from Save to contact. Another field already maps to that attribute. Remove the mapping from the other field first.
Add condition is disabled. No other field collects a value. Add a value field first.
The embedded form does not show your latest change. Embeds use the last saved version, and the configuration may be cached for up to 30 seconds. Click Save, then reload the page after a few seconds.
No contact is created. No field maps to Email or Phone, the CRM switch is off, or the email/phone answer was invalid. Map an email or phone field and check the warnings on the submission.
“Some values are not valid.” with a path when saving. The server rejected the definition. Fix the field indicated by the path.