Select field
What it does
A Select field is a dropdown list of options you write, such as the models of a product. The visitor opens the list and picks one. You can also let them pick several, as described under Settings. You find the field in the builder's left panel, in the Options group. You add it by dragging it onto the form, as described in Adding fields and sections.
With the standard settings, the closed dropdown shows "-- Please Select --" until the visitor picks an option. To see the answer, go to Content → WebForms → Inbox and open the submission. It shows the text of the option the visitor picked.
When to use
Choose Select when the visitor must pick from a fixed list:
- Select keeps a long list compact: the options stay hidden until the visitor opens the dropdown.
- Radio shows every option on the page at once. It suits a short list the visitor should read in full.
- Checkbox lets the visitor pick several options and shows them all at once. When visitors may pick several, a Checkbox field is easier to understand than a Select with Multiple Selection.
Settings
Go to Content → WebForms → Manage Forms, click the form's name, then click Form Builder. Click the field on the form. Its settings show in the right panel, on the tabs General, Validation, Appearance and Logic. If you don't know these parts of the screen yet, see the Builder tour. You'll change these settings most often:
- Label (General tab) is the name visitors see above the dropdown.
- Options lists the entries of the dropdown. Click Edit Options to change the list. A new Select field has one entry, "-- Please Select --", marked as the placeholder. It fills the closed dropdown and doesn't count as an answer. Add your own options below it. See Options.
- Required makes the visitor pick an option before the form can be sent. When you turn it on, Required Error Message appears below Required in the right panel for your own wording.
- Multiple Selection (General tab) lets the visitor pick several options. On the Luma theme, the dropdown then becomes a box that shows four options at a time and scrolls when the list is longer. On the Hyvä theme, it becomes a list box two to six rows tall, depending on the number of options.
- Show Selected Values (Appearance tab) repeats the text of the picked options next to the label.
- Show Search Box adds a box at the top of the open list where the visitor types to filter the options. The closed dropdown then says "Select an option". Use it when visitors would otherwise scroll through a long list.
The table below lists every other setting. Each change saves into the form's draft at once. Visitors see it after you click Publish Changes in the builder's top bar. To check the form first, click Preview in the same bar.
All settings of this field
| Setting | Where in the panel | Values | Translatable |
|---|---|---|---|
| Enable Field | General → Basic | On or off | No |
| Label (required) | General → Basic | Text | Yes |
| Field Code | General → Basic | Text | No |
| Required | General → Basic | On or off | No |
| Required Error Message | General → Basic | Text | Yes |
| Help Text | General → Basic | Formatted text | Yes |
| Tooltip | General → Basic | Formatted text | Yes |
| Options | General → Field Settings | Edited in the panel | No |
| Multiple Selection | General → Field Settings | On or off | No |
| Show Search Box | General → Field Settings | On or off | No |
| Empty Option Text | General → Field Settings | Text | Yes |
| Hide in Submissions | General → Submission Display | On or off | No |
| Allow in Staff Email Subject | General → Submission Display | On or off | No |
| Submission Label | General → Submission Display | Text | Yes |
| Personal Data | General → Privacy | By field type — Not personal, Not personal, Personal data | No |
| Desktop | Appearance → Layout | Width: Full (1/1), Half (1/2), Third (1/3), Quarter (1/4), Fifth (1/5), Sixth (1/6), 2/3, 3/4, 2/5, 3/5, 4/5, 5/6; New row: on or off | No |
| Tablet | Appearance → Layout | Width: Full (1/1), Half (1/2), Third (1/3), Quarter (1/4), Fifth (1/5), Sixth (1/6), 2/3, 3/4, 2/5, 3/5, 4/5, 5/6; New row: on or off | No |
| Mobile | Appearance → Layout | Width: Full (1/1), Half (1/2), Third (1/3), Quarter (1/4), Fifth (1/5), Sixth (1/6), 2/3, 3/4, 2/5, 3/5, 4/5, 5/6; New row: on or off | No |
| Show Label | Appearance → Style | On or off | No |
| Help Text Position | Appearance → Style | Below input, Above input | No |
| Show Selected Values | Appearance → Style | On or off | No |
| Container Classes | Appearance → CSS | Text | No |
| Input Classes | Appearance → CSS | Text | No |
| Custom Attributes | Appearance → Advanced | Text | No |
| Inline Style | Appearance → Advanced | Text | No |
Validation
| Check | What the visitor sees when it fails |
|---|---|
| Required | "Please select an option." under the dropdown, or your Required Error Message. |
When Required is off, the Validation tab shows Required Unless This Field Is Filled. Pick another field there, and the visitor must answer at least one of the two. When Required is on, the tab is empty.
Logic
- Start a rule: yes. A Select field can show or hide other fields and sections. In the rule, the condition is or is not compares the visitor's answer with the options you select. Open the field's Logic tab and click Manage conditional logic. See Show or hide fields and sections.
- Show or hide this field: yes, from a rule that starts on another field with options.
- Email conditions: yes. A notification can go out only when the answer Is or Is Not an option you choose.
Limits
- A Select field holds one list. To ask about two things, such as a model and a color, add a field for each.
Troubleshooting
- The dropdown shows only "-- Please Select --". The field has no options of its own yet. Click Edit Options, add them, then publish the form.
- A visitor can pick only one option. On the General tab, turn on Multiple Selection, or use a Checkbox field.
- Your change doesn't show on the storefront. Changes stay in the draft until you click Publish Changes. See Drafts, publishing and versions.
What's next
- Options: write the entries of the list.
- Checkbox field: let visitors pick several options at once.
- Show or hide fields and sections: show follow-up questions for one option only.