Forms and every field type
Add and order form fields, choose each field's type, where its answer is saved, validation, the form layout, the button and what happens after sign-up.
The form is what turns a visitor into a lead. Fewer fields mean more sign-ups, so ask only for what you will use.
What you need
- A campaign open in Design, with the Form fields block on a page. Most templates have one.
Add fields
- Click the form on the popup. Its settings open on the right under Form fields.
- Click a chip to add a ready field: Name, Email, Phone, Consent, Question or Long answer.
- Move a field up or down to change the order. Remove one you do not need.
Add an email field so this form can collect leads. Tools such as e-mail lists need an address.
Settings of one field
- Label and Placeholder: the words the visitor reads.
- Required: the form cannot be sent without it.
- Saves to: the lead field the answer is saved to.
- Input name and validation: opens the field's ID and its validation.
The field types
- Email: checks that the answer looks like an address, and suggests a fix for a common typing mistake in the part after @.
- Phone: a phone number.
- Text: one line of text, for a name or a short answer.
- Long text: A box three lines tall. Up to 2000 characters are kept.
- Dropdown: the visitor picks one option. Write the options one per line.
- Checkbox: a box to tick.
- Consent: a tick box for agreement, recorded with the lead. See Consent and the privacy line.
- Hidden: not shown to the visitor. It is sent with a value you set.
Where an answer is saved
Saves to offers the lead fields Email, First name, Last name, Phone, Company and Consent, or Custom field. A custom field is kept under the field's ID and appears under the lead's custom fields and in what is sent to your tools.
Field ID and validation
- Field ID: Lowercase, no spaces. Sent to your integrations.
- Minimum length and Maximum length.
- Pattern: A regular expression the answer must match.
- Error message: what the visitor reads when the answer does not pass.
Hidden fields with page values
A hidden field can carry a value from the page the visitor is on. Write one of these as its value:
{{url}} the address of the page
{{title}} the title of the page
{{query:ref}} the value of ?ref= in the address (use any parameter name)Layout of the form
Under Form layout:
- Automatic: Side by side when the popup is at least 520px wide and has one or two fields to type in; otherwise, and always on phones, stacked.
- Stacked or Side by side.
- Show field labels and Gap between fields.
The button and after sign-up
- Type the button's words on the popup.
- Under After sign-up choose what follows when there is no thank-you page: Show a thank-you line or Close the popup. With a thank-you page, that page is shown. See Pages of a popup: main, thank-you and Yes / No.
What you should see
In the preview, send the form with an empty required field: the error shows under the field. With valid answers the thank-you page appears. To test the whole way to your tools without a real visitor, use Send test lead on the campaign.
Spam
The form carries a hidden trap field that people never see and automated senders tend to fill. A sign-up that fills it is dropped.
If it does not work
- The form has no email field, so leads can't be contacted.
- An answer does not reach your tool: check that the field is in the tool's rows under what to send. See Connecting a tool: how it works.
- This is not a valid regular expression, so it cannot be saved. or This pattern repeats a group that already repeats, e.g. (a+)+, which can freeze a visitor’s page. Simplify it.
- The fields sit side by side when you want them stacked: set the layout to Stacked.