The Multiselect component for Retool Apps
An input field to select multiple options using a dropdown menu or manually enter values.
Settings
Multiselect includes the following configurable options when building apps in the IDE.
Properties
All properties for Multiselect with supported data types or values. You can write JavaScript almost anywhere in Retool to manipulate or read property values.
allowCustomValue
Whether to allow values that do not exist in values
.
automaticItemColors
Whether to automatically assign a color to each item.
colorByIndex
A list of colors for each item, by index.
customValidation
The custom validation message to display if the invalid
is true
.
disabledByIndex
A list of boolean values for each item, by index, that reflect whether they are disabled.
disabledValues
A list of values not available for selection.
emptyMessage
The message to display if no value is set.
Properties
event
The event type.
Values
change | A user changes the value. |
click | A user clicks or taps the component. |
submit | A user submits the value. |
focus | A user selects the input field. |
blur | A user deselects the input field. |
scan | A user scans a barcode. |
open | A user opens the component. |
close | A user closes the component. |
true | A user sets the value to |
false | A user sets the value to |
select | A user selects a value. |
clear | A user clears the value. |
upload | A user uploads a file. |
parse | An uploaded file is parsed. |
inputValueChange | A user changes the value of the input field. |
method
The JavaScript method to perform when type
is datasource
, widget
, state
, or localStorage
.