Skip to main content

Autocomplete field

What it does​

An Autocomplete field is a text box that suggests answers as the visitor types. You find it in the builder's left panel, in the Text Input group, and add it by dragging it onto the form, as described in Adding fields and sections.

As the visitor types, a list under the box shows the options that contain the typed characters anywhere in their text. For example, typing ar suggests both "Cedar Hill" and "Harbor". The visitor clicks a suggestion or keeps typing their own answer. Clicking into the empty box opens the list with the first options. When nothing matches, the list says "No matching options". With Require a Listed Option off, a visitor who keeps text that isn't on the list sees the note "Kept as typed. Not in the list."

The suggestions come from your store only, and no outside service or key is needed. They come from one of two sources:

  • Manual Options: a list you type in the field's settings.
  • Product Attribute: the options of one of your product attributes, such as Color. The suggestions follow your catalog when the attribute's options change.

The answer is saved as the text in the box, and shown as it is on the submission page, in the Inbox and in emails.

When to use​

  • Use Autocomplete for a long list where typing is faster than scrolling, such as your collections or colours, or when you want to suggest common answers but still accept others.
  • Use a Select field for a short list the visitor must choose from.
  • To let visitors pick one of your products, use the Product field.

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 and Appearance. You'll change these settings most often:

  • Suggestion Source (General tab) chooses Manual Options or Product Attribute.
  • Options holds the manual list, one option per line. A new field starts with "First option", "Second option" and "Third option" to rename.
  • Attribute appears with Product Attribute and picks the attribute. The suggestions are its options in the store view the visitor uses.
  • Require a Listed Option accepts only an answer from the list. Without it, the visitor can send any text.
  • Placeholder is a hint shown inside the empty box.
  • Minimum Characters (General tab, under Advanced) is how many characters the visitor types before suggestions appear. With 2, typing a shows nothing and typing ar shows the matches. When it's empty, one character is enough.
  • Maximum Suggestions (under Advanced) is how many suggestions the list shows at once. When it's empty, the list shows up to 10. The list shows at most 50, whatever number you enter.

The table below lists every setting. Visitors see a change after you click Publish Changes in the builder's top 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
Placeholder General → Field Settings Text Yes
Suggestion Source General → Field Settings Manual Options, Product Attribute No
Attribute General → Field Settings Your store's own records No
Options General → Field Settings Text Yes
Require a Listed Option General → Field Settings On or off No
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 — Personal data, Not personal, Personal data No
Input Mask General → Advanced Text No
Transform Text After Save General → Advanced No, Uppercase, Lowercase No
Minimum Characters General → Advanced Number No
Maximum Suggestions General → Advanced Number No
Browser Autocomplete General → Advanced Text No
Unique Value Validation → Unique On or off No
Error Message Validation → Unique Text Yes
Minimum Length Validation → Length Number No
Error Message Validation → Length Text Yes
Maximum Length Validation → Length Number No
Error Message Validation → Length Text Yes
Pattern Validation → Pattern Text No
Error Message Validation → Pattern Text Yes
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
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
Required "This is a required field." under the box, or your Required Error Message.
Require a Listed Option "Select an option from the list." under the box, when the visitor leaves text that isn't one of the options.

The Validation tab also has Unique Value, Minimum Length, Maximum Length and Pattern, the same checks as on a Text field. See Validation rules.

Logic​

  • Start a rule: no. An Autocomplete field can't start one. Its Logic tab appears only once a rule shows or hides it, and lists that rule.
  • Show or hide this field: yes. Start the rule on another field that has a Logic tab, such as a Select, and choose this field as the one to show or hide. See Show or hide fields and sections.
  • Email conditions: yes, with Is, Is Not, Contains, Starts With and Ends With, compared with the text the visitor sent. See Recipients and conditions.

Limits​

  • An answer in this field counts as personal data unless you change Personal Data, so it's masked through the Management API and AI assistants. For a list of collections or colours, you can set it to Not personal; this needs the Edit Form permission. See Personal data masking.
  • With Product Attribute, the suggestions are the attribute's option names, not products.

Troubleshooting​

  • No suggestions appear, or the list says "No matching options". The visitor typed fewer characters than Minimum Characters, or no option contains them. With Product Attribute, check that Attribute is set and that the attribute has options.
  • The visitor sees "Select an option from the list." Require a Listed Option is on and the text isn't one of the options. The visitor picks a suggestion, or you turn the setting off.

What's next​

Applies to WebForms 4Last reviewed November 24, 2026