Skip to main content

Selection control input elements (web)

Selection controls are input elements that let users choose from predefined options, such as checkboxes, radio buttons, dropdowns, and sliders. Learn how each one works.

Written by Sofia Maconi

Selection control elements are input elements that let your users make a choice from a preselected set of options. This ranges from a simple yes/no answer to picking one or more records from the database or other data sources.

Checkbox

The Checkbox element is a basic selection control element that returns a yes or a no, depending on whether the box is checked.

Unchecked checkbox labeled I accept the terms and conditions.

A checkbox is a common way to let users accept terms and conditions.

Video lessons

How to use the checkbox input element

Radio button

The Radio buttons element is similar to the checkbox, but allows you to add more than one option. You can set up a static list of text options (the example below uses the texts Option 1, Option 2, and Option 3), or you can fetch a list of things from the database and display one of their fields as the label.

Three radio buttons labeled Option 1, Option 2, and Option 3, with Option 2 selected.

Radio buttons let the user pick one option from a list.

Video lessons

How to use the radio button input element

Dropdown

Like the Radio buttons element, the Dropdown element lets your users make one choice from a list of texts or from the database.

Closed dropdown showing Option 1 as the selected value.

A dropdown shows the selected option and reveals the full list when clicked.

Video lessons

How to use the dropdown input element

Searchbox element

The Search box element lets you set up a flexible text search for database records. The element looks like a regular input field but quickly and dynamically returns search results as the user types.

Search box with the text cap typed in, showing the results Baseball cap and Trucker cap.

The search box returns matching records as the user types.

Note: Each time you type or change a character in the search box element, it triggers a fresh database query (see Key terms). While this gives a fast search response, it's worth remembering that each query consumes some workload (see Key terms). To learn more about workload management, refer to the article series linked below.

Article series: Workload

Video lessons

How to use the searchbox element

How to use the Do a search for data source

How to use search constraints

Slider input

The Slider input element lets your users select a numerical value out of a range. You can set a minimum value, a maximum value, and the value of each step.

Horizontal slider with its handle set a little left of the middle.

The user drags the handle to pick a value within the range you set.

Video lessons

How to use the slider input element

Multiselect dropdown

The Multiselect dropdown element lets your users select multiple choices from a list of texts or records from the database. They choose items from a dropdown list or search for them by typing.

Multiselect dropdown with Choice 1 and Choice 3 selected as removable tags.

Each selected item appears as a tag that the user can remove.

The element returns a list of whichever type of data you specify.

The Multiselect dropdown element is a plugin. It's made by Bubble, but it needs to be installed in your app before you can use it.

Search for Multiselect dropdown in the Plugins tab to install it.

Video lessons

How to use the Do a search for data source

How to use search constraints

Key terms

Database query: A database query means that Bubble communicates with the server to either transmit or retrieve data, such as saving something or finding something using Do a search for.

Article series: The database

Article: Finding data

Reference: Do a search for

Workload: Workload is a measure of the work that Bubble does to power your app. Each time your app is tasked with processing an action, such as loading a page or querying your database, it contributes to your monthly workload consumption.

Did this answer your question?