Skip to main content

New Introducing the Holiday Hub — seasonal templates and ideas to plan your holiday campaigns in one place.Introducing the Holiday Hub.Explore the Holiday Hub

Field Widget

All plans Last reviewed

The Field Widget adds input fields, such as name, email or your own custom questions, to a Form Container in your campaign. Visitors fill them out and use the Submit button to send their information. Add it from the Add Widgets panel in the Campaign Builder.

Before you start

Every plan can use the Field Widget. A Field Widget always sits inside a Form Container Widget, so add a Form Container first if your campaign doesn't have one.

To enter entries yourself, fill out the form inside the Campaign Builder, and use the Form Container's visibility settings to hide it from the live campaign.

Adding the Field Widget

  1. Find the Field Widget icon (a form with lines) in the Add Widgets panel.
  2. Click the icon, or drag it into a Form Container Widget in the Edit Widgets panel.
The Add Widgets panel with the Field Widget icon, a form with lines, circled in green.

The widget's settings open automatically. To open them again later, click the pencil icon on the Field Widget.

Widget settings

At the top of the settings window you can rename the widget and find its CSS ID.

  • Name: click the pencil icon in the top-left corner, next to the widget name, and enter a new name. By default, the name matches the field type you select.
  • CSS ID: the ID, starting with #, appears in the top-right corner of the window.

Field type

The Field Type section is where you choose what the field collects. There are two kinds:

KindHow you can use it
Standard FieldsUse each one once per list.
Custom FieldsUse them as many times as you like. They are saved to your Field Library, and you can hide them from the live form.

Selecting a standard field

  1. Click the field type you want.
  2. Configure the field in the Field Settings section.

After you use a standard field type, it is greyed out for the other fields in the same Form Container.

Selecting a custom field

  1. Choose the field type.
  2. To reuse a custom field you created earlier, select it on the right-hand side. Otherwise, configure a new one in the Field Settings section.
  3. To collect information the entrant doesn't see, select the checkbox to make the field hidden.
  4. Save the field to your Field Library so you can use it again.

Using the same custom field twice

You can place the same custom field twice on one form. Both fields then change together as the entrant answers, because they share one ID. If you want them to collect separate answers, give one of them a new ID.

To check a field's ID, look at the bottom-right corner of its settings. In the example below, the field ID is custom_text_52.

The lower part of the Field Widget settings, with the Field Library reference outlined in green: the field label How many dogs do you want? above its ID, custom_text_52.

Learn more in Making copies of Field Widgets.

Field settings

The Field Settings section is where you configure most of the details of your field. The settings depend on the field type. Select the expand icon (▸) to open a collapsed subsection. Common subsections are:

SubsectionWhat it does
LayoutChooses a layout, when the field type offers more than one.
TextSets the Labels and Placeholders of the field, where the field type has them.
ValidationSets whether the field is required (see below).
Error messagesSets the messages visitors see when their answer isn't accepted.
Field pointsAssigns points to the field. Entrants earn them when they complete the field.
OtherInstructions shows text below the field when it is selected. Extra CSS Classes adds one or more CSS classes so you can change the field's appearance with custom CSS.

Choosing when a field is required

In the Validation subsection, choose one of three settings:

SettingUse it when
AlwaysEvery entrant must answer.
When visibleThe field can be hidden part of the time, for example inside a container that starts hidden. Entrants answer it only when they can see it.
NeverThe field is optional.

If a field is set to Always but is hidden, either by its own Starts Hidden setting or by its parent container, a warning icon appears next to it in the Edit Widgets panel. Click the icon to change the setting to When visible.

The Edit Widgets panel with a Phone field marked by a warning icon. A tooltip explains that the field is set to required always but also starts hidden, and to click the icon to change it to required when visible.

When you add a new Field Widget inside a Starts Hidden container or Form Container Widget, ShortStack sets it to When visible for you, so that hidden fields don't block your entrants from submitting.

Visibility

Use the Visibility section to control when and where the field appears. You can:

  • Set specific dates and times.
  • Show the field only in the Builder.
  • Limit the field to visitors from certain countries.

Learn more in Widget visibility.

Extras

To learn about the Main Tag, CSS Classes and Smart Labels settings, see Widget extras.

Styling the Field Widget

Select the widget to style it. You can change, for example, the input box color, the maximum width of the widget, the label font and the widget alignment. The Style Panel has four areas for this widget:

  • Labels
  • Input Box
  • Help Text
  • Widget

If something goes wrong

You see "Action Needed" when you add a field. The full message is Field widgets must be enclosed inside a form container widget. A Field Widget has to sit inside a Form Container, so choose Add Form Container Widget in the dialog, then add your field to it.

An error dialog headed Action Needed, reading Field widgets must be enclosed inside a form container widget, with buttons to Add Form Container Widget or Close.

A standard field type is greyed out. You've already used it in this Form Container. Use a custom field when you need the same kind of question again.

Two fields change together. They share the same ID. Give one of them a new ID, as described in "Using the same custom field twice".

How to Build a Form (Video)

The Best Types of UGC to Collect and Use (Blog)

Making Copies of Field Widgets (Help Doc)

List Field (Help Doc)

Field Library (Help Doc)

Category Field (Help Doc)

Upload Field (Help Doc)

Was this helpful?