How to add an attribute:

close icon
Hey! Give us some feedback here.
Forms

Combo Box

A combination of a dropdown list and an editable text input. Users can search for options or enter a value that isn't in the list.

1,135,999

loads per month

Combo Box
Step #1

Copy the Solution <script> and paste into the <head> of your page

copy icon
Copy Script
Step #2

Implement in Webflow

Apply attributes to elements on the page

Below is a list of elements and options that are used to create this Attributes functionality. Click any of them to see more details.

Required structure

Follow Dropdown, Dropdown Toggle, and Dropdown List nesting rules.

navigator arrow
Dropdown
I want to use this Webflow
select icon

Dropdown

See how it works
see webflow attributes
component as the combo box component
Add this attribute
Description
Name
fs-combobox-element
copy icon
Value
dropdown
copy icon
Webflow Dropdown component that will serve as the combo box component.

Webflow Dropdown component comes with a Dropdown Toggle and Dropdown List. We must nest elements in each.
how to add a selectcustom dropdown attribute

Nested inside Dropdown Toggle

Each of these elements must be nested in the Dropdown Toggle.

navigator arrow
Text Input
I want users to enter text into the combo box with this
field element

Text Input

See how it works
see webflow attributes
Add this attribute
Description
Name
fs-combobox-element
copy icon
Value
text-input
copy icon
Text Input that allows the user to:

1) Search through combo box options.

As the user types, the option list updates based on the user input. For example, if the user types "mc", all options will be hidden except "McDonalds" and "McHamilton" and "Portamco".

2) Enter a unique value in the input that is not part of the option list.

If the user enters "Applebottom" in the input, and "Applebottom" does not exist as an option, the user will be able to input and submit "Applebottom" as the value of the field.
how to add a selectcustom dropdown attribute
navigator arrow
Clear
I want to this
div block icon

Div Block, Image, or Embed

See how it works
see webflow attributes
to clear the input when clicked
Add this attribute
Description
Name
fs-combobox-element
copy icon
Value
clear
copy icon
"Clear current option" button

Clicking this button will clear the current value of the text input.
how to add a selectcustom dropdown attribute

Nested inside Dropdown List

Each of these elements must be nested in the Dropdown List.

navigator arrow
Select
I want to store all of the combo box options in this
select icon

Select

See how it works
see webflow attributes
Add this attribute
Description
Name
fs-combobox-element
copy icon
Value
select
copy icon
Select element that holds all of the options in the combo box.

For example, if we want the combo box to show options "Blue", "Red", and "Green", then this Select element should have "Blue", "Red", and "Green" as the options.
how to add a selectcustom dropdown attribute
navigator arrow
Empty
I want this
div block icon

Div Block or Text Element

See how it works
see webflow attributes
to show in the combo box list when there are 
no matches in the user's search.
Add this attribute
Description
Name
fs-combobox-element
copy icon
Value
empty
copy icon
Empty state for the text input.

This can be used as a "No results found" message.

If the user types "Purple" and "Purple" is not an option in the combo box, the empty element will be shown to the user.
how to add a selectcustom dropdown attribute
navigator arrow
Option template
I want this

Link Block

See how it works
see webflow attributes
to be the option template for all combo box options
Add this attribute
Description
Name
fs-combobox-element
copy icon
Value
option-template
copy icon
Link Block element will be the template for each option in the combo box.

Nest one Text Element inside the Link Block.

The Link Block will be duplicated for each option in the Select element.

The Text Element in the Link Block will update with the text of each option in the Select element.
how to add a selectcustom dropdown attribute
navigator arrow
Option
prevent clear
I want to enter a unique value in the input that is not part of the option list.
See how it works
see webflow attributes
Add this attribute
Description
Name
fs-combobox-preventclear
copy icon
Value
true
copy icon
Prevents input from being automatically cleared in case the value is not part of the option list.
Where?
Add to the fs-combobox-element = "dropdown" element.

Working examples

See this solution working live in this Webflow project.

Example 1
Combo Box
Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.
Copy and paste this example directly on Webflow
copy icon
Copy this example

Developer documentation

external link icon

Next time implement inside Webflow

external link icon
Subscribe

Sign up for future releases!

Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.