You will learn

Learn how to use various content blocks from the form editor (i.e., elements and input fields) in your sign-up form to customize its appearance and the type of information you collect from subscribers.

About the Add blocks tab

In the sign-up form editor, click on the Add blocks tab to see the different content blocks that you can add to your form.

There are 5 different block categories:

  1. Integrations
  2. Elements
  3. Input fields
  4. Phone number
  5. Marketing consent

When you drag and drop a block into the form preview, editing options will appear in the left-hand sidebar. From here you can adjust the block's details, including text and styling. At the bottom of this editing menu, you can also configure Visibility settings for the block to control whether it displays on all devices, only desktop, or only mobile. Learn more about dynamic blocks in forms.

The editing menu for a text field in a form showing the Visibility setting configured to show on all devices.
The editing menu for a text field in a form showing the Visibility setting configured to show on all devices.

If you're building a mobile-only sign-up form, see basics: mobile form design.

Best practices when adding content blocks to forms

If you plan to include several blocks and fields to ask your site visitors for multiple pieces of information (e.g., birthday, email address, phone number, etc.) in your form, use a multi-step form. Multi-step forms can help you learn more about your visitors and collect their consent across multiple channels, without overwhelming them with too many fields at once.

If you want to ask for both email and phone number in your form, it's best practice for list growth and compliance to include these fields on 2 different steps.

Form elements

Sign-up form elements add content to your form, including text, buttons, images, and coupons. These blocks inform the visitor of the purpose of your sign-up form and allow them to interact with it.

The Elements menu of options within the Add blocks tab in the form editor.
The Elements menu of options within the Add blocks tab in the form editor.

Text block

Text blocks allow you to insert text content on your form, such as a headline, instructions, or other display text. Klaviyo's form editor uses UTF-encoding standard, which means it supports Latin characters, emojis, double byte characters, and more. Additionally, you can add an inline image using the image URL input option.

Button block

Button blocks allow you to gather and save information in Klaviyo about those who submit your form. A button can allow the viewer to close or submit the form, direct them to a different page on your website, or subscribe them to SMS messaging.

Choose 1 of the following actions for your button:

The Button Click Action dropdown on the button menu showing on the action options, including Close form, Submit form, Go to URL, and Subscribe via SMS.
The Button Click Action dropdown on the button menu showing on the action options, including Close form, Submit form, Go to URL, and Subscribe via SMS.
  • Close form
    The form will close and data won’t be submitted to Klaviyo.
  • Submit form
    Any form fields that the visitor completed will be sent to Klaviyo, and the form will progress based on the option you select for the After Submit field (either Show next step, Go to URL, or Close form).
  • Go to URL (Redirect to a different page)
    The visitor will be redirected to the URL you provide, and data from any form fields won’t be submitted to Klaviyo. When inputting your Destination URL, use the full URL, including https:// (e.g., use https://help.klaviyo.com/hc/en-us rather than help.klaviyo.com/hc/en-us).

The Go to URL action will not work with an incomplete URL.

  • Subscribe via text messaging
    You can configure this option on mobile-only forms, or on the mobile view of the SMS Opt-in step for forms that target all devices. It allows visitors to subscribe to SMS in just a few taps (tap-to-text). When a visitor clicks a Subscribe via text messaging button, their text messaging app will appear with a pre-typed message they can send to subscribe.
    • Select a keyword from the Text messaging keyword dropdown. This is the word someone must text to your sending number to subscribe. The keyword is configured at the account level and determines which list the subscriber joins.
    • Customize the opt-in Message, which will populate in the visitor’s messaging app. This field allows up to 160 GSM-7 characters (1 message) only. Special characters, including emojis, are not valid.
    • Choose the appropriate number under Sending Region if you operate in multiple regions and have more than 1 sending number.
The SMS Settings menu that appears when a button click action is set to Subscribe via SMS.
The SMS Settings menu that appears when a button click action is set to Subscribe via SMS.

Change the list a sign-up form submits to

For a button with its Action set to Submit form, you can change the list that new subscribers join in the button’s settings. For Subscribe via text messaging, the selected keyword determines the list instead. To change a form’s submit list:

  1. Click the button with its Action set to Submit form within the form editor.
  2. In the menu that appears along the left, select the new list under List to Submit.

The list to submit dropdown on the button menu where you can select which list your form submits to.
The list to submit dropdown on the button menu where you can select which list your form submits to.
  1. Click Back in the editing sidebar.
  2. When you’re satisfied with your form’s content, click Publish or schedule and select Publish now. Resolve any blocking alerts, then click Publish now to confirm. Even if your form is already live, you must publish the changes so that new subscribers join your newly selected list.

Submit hidden fields

Hidden fields are additional properties that will be added to a subscriber's profile in Klaviyo. This allows you to track visitors who interact with your form. By default, all forms have a $source property as a hidden field, which identifies how they were added to your list.

This option is only available for buttons with an Action set to Submit form.

You can customize the $source property and other property names. Like other inputs on forms, if you add hidden fields for properties that already exist in someone's profile, they will be overwritten by the new value when they submit the form. For example, let’s say your form gathers collection preferences, and a customer has previously selected that they are interested in your men’s collection. If this form has a hidden field for interest in your women’s collection, then the preferences property will be overwritten when the button is clicked (i.e., from men’s to women’s).

To add a new hidden property, select Add a property, then choose the property and enter its value.

The Submit Hidden Fields option which appears when a button click action is set to Submit Form.
The Submit Hidden Fields option which appears when a button click action is set to Submit Form.

Image block

Image blocks allow you to add an image to your form (e.g., your logo). You can use this block to add images to match the look and feel of your brand.

JPEG, PNG, and GIF files are all accepted. As with all images viewed on the web, larger file sizes lead to slower load times. Aim for a file size of 50-100 KB for optimal performance.

You can also add a background image or a side image in the Styles tab of the form editor.

Coupon block

Add a coupon block to incentivize your site visitors to submit your sign-up form and use the included coupon to make a purchase on your site.

You can add static or unique coupon codes to a form. To use unique codes, add the coupon block to the Success step. This is also the recommended placement for static codes, so shoppers don't have to leave your website to get the code. Read our guide on adding coupon codes to sign-up forms for more details on set up.

SMS disclosure block

SMS disclosure language should be placed above an SMS opt-in button to help maintain SMS compliance. Learn more about SMS disclosure language.

Countdown timer

Countdown timers can add a sense of urgency to your sign-up forms, and are often paired with special promotions or holiday messaging. Learn more about adding countdown timers to forms.

Sign-up counter block

Add a sign-up counter block to display recent form activity (e.g., "500 sign-ups in the past hour!"). This block uses social proof to encourage site visitors to subscribe.

A sign-up form with a sign-up counter block displaying real-time sign-up count on an example website.
A sign-up form with a sign-up counter block displaying real-time sign-up count on an example website.

When you add a sign-up counter block to a form, you can configure the following settings:

  • Display
    Visitors can be counted before they reach the success step, such as when they submit an email on an earlier step. Go to URL and tap-to-text button clicks can also count without a completed subscription. Choose a time period:
    • Sign-ups in the past 30 days
    • Sign-ups in the past 7 days
    • Sign-ups in the past 24 hours
    • Sign-ups in the past hour
  • Show after __ submits
    Determine the minimum number of submissions required for the block to appear.
The Sign-up counter block menu within the form editor showing an example form set to show Sign-ups from the past 30 days after 20 submits.
The Sign-up counter block menu within the form editor showing an example form set to show Sign-ups from the past 30 days after 20 submits.

The block will be hidden from site visitors until the minimum number of submits is reached. Once the minimum number of submits is met (e.g., 200 submits), the block displays on your form.

The default text will reflect your selected Display settings. While this text is configurable, do not delete the {{ form_submit_count }} tag as this shows the sign-up count.

Input fields

Input fields enable you to collect information from site visitors, like their email address, name, or birthday.

The input fields options that can be added into a sign-up form from the Add Blocks tab of the form editor.
The input fields options that can be added into a sign-up form from the Add Blocks tab of the form editor.

All input fields must be connected to a profile property, which is used to store the data each subscriber submits. When you add an input field to your form, select an existing property from the Profile property dropdown, or type a new property name and select Create followed by that name.

The Profile Property dropdown where you can select or create a property to go with an added input field.
The Profile Property dropdown where you can select or create a property to go with an added input field.

Unless otherwise specified, inputs from these fields will be stored within each individual's profile page.

It is not recommended to update custom profile properties in Klaviyo that were synced via an integration (e.g., Shopify tags), since these will be overwritten the next time your integration syncs.

Email input field

Email input fields allow visitors to input their email addresses and subscribe to the list connected to the form. Each step can have 1 email input per device view. Email inputs cannot appear on the success step.

Phone number field

If you add a phone number field, by default, it will collect promotional SMS consent, which allows you to send any SMS messages. This block validates submitted phone numbers to ensure they're stored in an acceptable number format. If you have not already, enable SMS if you're going to collect SMS consent, and set up your disclosure language to include anywhere you collect SMS consent.

If necessary, you can adjust the type of SMS consent the form collects; but, ensure the disclosure language matches the consent type and includes examples of the types of messages you'll send so subscribers understand what they're agreeing to.

You can also use dynamic blocks when collecting SMS consent to ensure shoppers see the best method for opting in.

Text input field

Text input fields are used to collect information that doesn’t need to follow a specific format (like dates or email addresses), and when it doesn’t make sense to offer a preset list of options. Note that segmentation and flow filtering are case- and spelling-sensitive. Consider other field types if you plan to use this data for segmentation or filtering.

A common use case for text input fields is collecting subscribers’ names. To add a first name field, use “First name” as the label or placeholder text, and select First Name as the profile property.

The Text input menu that appears when you add a text input field into a sign-up form in the form editor.
The Text input menu that appears when you add a text input field into a sign-up form in the form editor.

Radio buttons

Radio buttons offer a preset list of options, of which subscribers can only select 1. These are useful for collecting information like gender or age range.

The radio button menu in the form editor showing an example radio button collecting a beverage choice profile property.
The radio button menu in the form editor showing an example radio button collecting a beverage choice profile property.

The Profile property field should contain the name you’d like to use for this property. For example, if your form asks visitors if they prefer coffee or tea, use a custom profile property like “Beverage Choice”.

Use the Labels column of the Property Options section to add the options your subscribers can choose from. Then, add corresponding values in the Values column. These values will be stored in the profile of anyone who fills out the form, so consider using a shorthand version of the answer that’s easy to reference.

If your option labels are “Tea drinker” and “Coffee drinker,” the values could be “tea” and “coffee,” respectively.

When a subscriber answers a radio button question, their response will be stored as a string data type.

Multi checkboxes

Multi checkboxes offer a list of options, and subscribers can select as many options as they would like. Multi checkboxes are useful for gathering preference information, interest areas, demographic information, and any questions where a subscriber should be able to select more than 1 option.

The multi checkbox menu in the form editor showing an example multi checkbox collecting baking preference profile property.
The multi checkbox menu in the form editor showing an example multi checkbox collecting baking preference profile property.

Like a radio button field, your multi checkbox field requires a profile property, a set of labels, and a set of values.

When a subscriber answers a multi checkbox question, their answer will be stored as a list data type, regardless of how many options they select.

Date field

Date fields are the best way subscribers can input date values, which can then, in turn, be used for segmentation or to trigger date-based flows.

The Date menu that appears when you add a date input field to a sign-up form.
The Date menu that appears when you add a date input field to a sign-up form.

For example, you may want to collect subscribers' birthdays so that you can send them a coupon code via a flow on their birthday. In this case you'd add the date field and set the corresponding profile property to birthday. If you are interested in collecting date information about a customer, use a date block to ensure the dates are formatted correctly.

You can customize how visitors enter dates on your form (e.g., DD/MM/YYYY). Dates submitted through a date field are stored using the date data type, regardless of the selected input format. If you select an option from the Date Format menu that doesn’t include a year (e.g., MM DD), the current year is automatically included.

Dropdown field

Dropdowns are similar to radio buttons, in that subscribers can select 1 option from a preset list. This option also helps conserve space on your form. Consider using a dropdown instead of radio buttons when you have more than 4 options. Like radio buttons and multi checkboxes, your dropdown field requires a profile property, a set of labels, and a set of values.

The dropdown input field menu showing an example dropdown collecting a pet type profile property.
The dropdown input field menu showing an example dropdown collecting a pet type profile property.

Marketing consent

Tracking consent

If needed, use a Tracking consent block to ask visitors for email marketing and email tracking consent when they sign up.

In the form editor, open Add blocks and find Tracking consent under Marketing consent. Drag it onto a step with an email input. Make sure the email input is visible on every device where the Tracking consent block appears. A form can have 1 Tracking consent block. It cannot be placed on the success step or on a step containing Continue with Shop.

Choose how to collect consent

Under Collect consent separately or together, choose:

  • Separate checkboxes: Give visitors separate choices for marketing and tracking consent.
  • Combined checkbox: Ask visitors to consent to marketing and tracking with a single checkbox. Combined consent is not accepted in every EU country. Consult your legal or privacy team before choosing this option.

Under Email tracking type, select the activities you want to collect consent for:

  • Email opens
  • Email clicks

Select at least 1 tracking type. Marketing consent is always included in the block.

When using separate checkboxes for both opens and clicks, enable Use one checkbox for opens and clicks to combine the 2 tracking choices while keeping marketing consent separate, if preferred.

With Separate checkboxes, use Require marketing consent to make marketing consent required. This setting is unavailable with Combined checkbox. Tracking consent is optional.

Customize your consent text

Under Consent copy, edit the disclosures for the consent types you collect. Replace the suggested text with wording approved by your legal or privacy team.

Under Disclosure and withdrawal, edit the text shown below the checkboxes. Include instructions that match how recipients can withdraw consent and link to your privacy notice.

Under Consent section title, customize the introduction to your consent choices. Use Show consent section title to control whether it appears on the form. Screen readers can read the title even when it is hidden.

Before publishing, replace placeholder text with your brand name, submit-button label, and relevant links. Make sure references such as “above” or “below” match your form’s layout.

Style the block

Customize the block’s background color, padding, and animation. Input fields use your shared form styles unless you enable Override shared input field styles for this block.

Understand tracking consent

Email marketing consent and tracking consent are separate permissions. Changing a recipient’s tracking consent does not change their email marketing subscription.

Klaviyo stops recording the corresponding open or click events when a recipient is unsubscribed from that tracking type. Tracking is enabled by default when no explicit tracking consent has been recorded, unless another applicable tracking control disables it.

Learn more about managing open tracking and managing click tracking.

Age gate

Age gate blocks are available to eligible businesses in supported countries. Age-gating must be enabled in your account before you can add age gate blocks to your sign-up forms. Learn more about age-gating with Klaviyo.

Delete an element or input field

To delete any element or input field from your sign-up form:

  1. In the form preview within the editor, hover over the block you wish to delete.
  2. Select the trash icon that appears.
A mouse hovering over a text block in an example form preview showing the trash can icon visible.
A mouse hovering over a text block in an example form preview showing the trash can icon visible.
  1. In the Delete Block dialog, click Delete Block. If you delete a block by mistake, click Undo in the editor while the deletion is still in your edit history.

Next steps

If you want to configure 1 form to have a distinct desktop view and mobile view, head to our guide on using dynamic blocks in forms.

Once you’ve added blocks and fields to your sign-up form, learn how to style it to match your brand. When you’re ready to publish, click Publish or schedule and select Publish now. Resolve any blocking alerts, then click Publish now to confirm. If you build an embed form, you must also add the form’s embed code to your site.

Additional resources

  • Getting started with sign-up forms

    Learn how to create and customize sign-up forms in Klaviyo to publish on your website so you can engage shoppers, collect emails and phone numbers, and build long-lasting customer relationships.

  • How to use dynamic blocks in forms

    Learn about dynamic blocks, and how you can use them in sign-up forms to create distinct views and experiences for shoppers on desktop and mobile devices. Any block in your form can be made dynamic by adjusting its visibility settings.

Was this article helpful?
Use this form only for article feedback. Learn how to contact support.

Explore more from Klaviyo

Community
Connect with peers, partners, and Klaviyo experts to find inspiration, share insights, and get answers to all of your questions.
Partners
Hire a Klaviyo-certified expert to help you with a specific task, or for ongoing marketing management.
Support

Access support through your account.

Email support (free trial and paid accounts) Available 24/7

Chat/virtual assistance
Availability varies by location and plan type