Combobox ​

Combobox enhances Dropdown fields and other dropdown display types with a filterable select UI powered by Tom Select. The native <select> remains in the DOM for submission, validation, conditions and calculations.

When It Loads ​

Formie adds the combobox module to a form’s browser-module manifest when Use searchable dropdown is enabled and the field renders a <select>:

  • Dropdown
  • Element relation fields when Display type is Dropdown (Entries, Categories, Users, Products, Variants)
  • Recipients when shown as a dropdown

Display Limit ​

The field’s Maximum Displayed Options setting defaults to 100 and is passed to the module as maxOptions. Search considers the complete option list before limiting the displayed matches. A null value displays all matches. The before-init event can override event.detail.options.maxOptions.

Markup ​

Searchable dropdowns output data-formie-combobox-input on the native <select>. Tom Select wraps the control at runtime and adds classes such as tomselected, ts-hidden-accessible, and formie-combobox.

Events ​

The formie:field:combobox:before-init Event ​

Triggered before Tom Select is created.

js
document.addEventListener('formie:field:combobox:before-init', (event) => {
  event.detail.options.placeholder = 'Choose one…';
});

The formie:field:combobox:after-init Event ​

Triggered after Tom Select has been mounted on the field.

js
document.addEventListener('formie:field:combobox:after-init', (event) => {
  const combobox = event.detail.combobox;

  console.log('Combobox ready', combobox);
});

The shared module lifecycle also exposes scoped events such as formie:module:combobox:init and formie:module:combobox:destroy.

Last updated: Oct 28, 2026, 11:29 AM