Form Select Element

Extend and control Webflow's Form Select Element

HTML <select> fields are form elements that allow users to choose one or more options from a dropdown list. They are used to present a list of choices, enabling users to select the most appropriate option(s) for their input.


When used with the multiple attribute, they allow for the selection of multiple items simultaneously.

In Webflow, this is enabled under the element's settings.

In most web browsers, users typically need to hold down the Ctrl (Windows) or Cmd (Mac) key to select multiple non-contiguous options or use the Shift key to select a range of options.

This UX can be difficult and inconvenient for users, especially those unfamiliar with keyboard modifiers or those using mobile devices. It can lead to accidental deselection or selection errors, and lead to confusion and frustration.

SA5 fixes this by overriding the browser's default UX behavior.


Usage Notes

Currently, SA5's primary feature regarding <select> elements is to "fix" the problematic multi-select UX behavior.

On the Form Select element you want to augment, add the attribute;

wfu-form-select = ( name )

Assign a meaningful name. The name is only used for referencing this element.

Multi-Select Capabilities

If you nave your select element set to multiple in Webflow, it will display as a list-style element and support the selection of multiple items.

SA5 allows you to change the browser's default multi-select behavior, so that a click will select/deselect each item individually.

To the select element, add;

wfu-form-select-mode = ( ... )

  • toggle - enables the click-to-toggle-selection mode

Usable only for selects which have the multiple setting enabled.


Multi-Selects also have a less-than-obvious styling for selected items. If this does not suit you, SA5 has a simple theme setting that will change the selected item background to blue.

wfu-form-select-theme = ( ... )

  • blue - applies a blue background to the selected items

If you want to specify your own selected-option styling, you can do so with custom CSS.


Consider using special Webflow variables to dictate styling options in SA5?

What is the CSS specificity for libraries and CSS vars ?

background color

text color


select and de-selected

Last updated