Selectize: (Multi) Dropdown Input

Demo to preview the settings

Introduction

Selectize is a fully customizable and fast (Multi) Dropdown Input. It’s useful for tagging, contact lists, country selectors, and so on.
  • Fully customizable
  • Single or multi-selection dropdown
  • Searchable!
  • Can be used with static or dynamic list
  • Can handle unlimited items (Bubble dropdown is limited)
  • Faster than RG. I know some of you use RG and an input text to achieve this. This offers a new option if you know HTML and CSS
  • Allow user to add new options that contain space!
Image without caption

Plugin Element Properties

Selectize Dropdown

Image without caption
Fields:
Title
Description
Type
Auto-Refresh
This option will refresh the input automatically.
Checkbox (yes/no)
Update items on refresh
When auto-refresh is enabled, you can choose to update the items. Only values in the refreshed list of options will be kept.
Checkbox (yes/no)
Static list
CSV list of options
Text (optional)
Delimiters
Delimiters you are using to split CSV list in settings. Example: You have a static list and instead of using a comma between value, you use a
. You enter the
Do not merge duplicate
Only apply to Static list. This will prevent system to merge same value into a unique value.
Checkbox (yes/no)
Dynamic list type
Database thing type
App Type (optional)
Dynamic list source
The source from database
Item reperesenting Dynamic list type (optional)
*Dynamic Field Display
This is the option displayed in dropdown. This is also a searchable field. item.display in Advanced HTML
Filed of Dynamic list type, represent Text, image or file (optional)
*Dynamic Field ID
If you are using Data from Bubble DB, use Unique ID. If you are using API Call, select the correct ID field. Can be the same as Display option. item.id in Advanced HTML
Filed of Dynamic list type, represent Text, image or file (optional)
Dynamic Field Search 2
You can add more field to search. item.search2 in Advanced HTML
Filed of Dynamic list type, represent Text, image or file (optional)
Dynamic Field Search 3
You can add more field to search. item.search3 in Advanced HTML
Filed of Dynamic list type, represent Text, image or file (optional)
Dynamic Field Search 4
You can add more field to search. item.search4 in Advanced HTML
Filed of Dynamic list type, represent Text, image or file (optional)
Group By
Used to categorize items into groups, allowing them to be displayed and organized within distinct sections in the dropdown.
Filed of Dynamic list type, represent Text, image or file (optional)
Manual Group by
CSV list of grouping data. Need to match the same number of items loaded by App. this allow you to use a related field to groub by. Override Group by.
Text (optional)
Placeholder
Defines a hint or descriptive text displayed within the input field when no value is selected, guiding users on what to enter or select.
Text
Max Items
If you want to limit the number of items. If you want the input to work as a single dropdown, put 1. Leave empty for unlimited
Number (optional)
Initial Values
CSV of initial value. If you are using dynamic value, you need to set the same value field that you have selected in ID field.
Text (optional)
Can create
Allow user to create options
Checkbox (yes/no)
Create On Blur
If user is allowed to create options, Blur will save the new options if yes.
Checkbox (yes/no)
Delimiter Create Option
If user is allowed to create options, Delimiter that will be used if multi options is enabled
Text
Create filter
Add a function to filter created item (like regex). Function have one argument (input) and need to return display value. Take a look at the demo page for some examples.
Text (optional)
Max options to display
Max number of options to display in dropdown list
Number
Select on Tab
Select first item on tab
Checkbox (yes/no)
Auto-Focus
Auto-focus search input when dropdown is open. False will open dropdown but no focus on search. This avoid keyboard to appear on mobile. User can click the input to search.
Checkbox (yes/no)
Options Dropdown max-height
Max height of the options dropdown in px.
Number
β€”ADVANCED LAYOUT β€” Please read carefully instructions on Demo Page. There’s also a few template you can use.
Dynamic display 2
You need to use item.display2 in your template.
Filed of Dynamic list type, represent Text, image or file (optional)
Dynamic display 3
You need to use item.display3 in your template.
Filed of Dynamic list type, represent Text, image or file (optional)
Dynamic display 4
You need to use item.display4 in your template.
Filed of Dynamic list type, represent Text, image or file (optional)
Dynamic image
You need to use item.image in your template.
Filed of Dynamic list type, represent Text, image or file (optional)
Custom HTML code
Custom HTML Code for the dropdown list of options
Text (optional)
Custom Items HTML Code
Custom HTML Code for the items lists
Text (optional)
β€”PLUGINSβ€”
Restore on backspace
Press the [backspace] key and go back to editing the item without it being fully removed.
Checkbox (yes/no)
Remove button
This plugin adds classic a classic remove button to each item for behavior that mimics Select2 and Chosen.
Checkbox (yes/no)
Remove icon top offset
β€œRemove” (x) icon top offset (pixels)
Number
Drag and drop
Adds drag-and-drop support for easily rearranging selected items.
Checkbox (yes/no)
Optgroups horizontally
A plugin by Simon Hewitt that renders optgroups horizontally with convenient left/right keyboard navigation.
Checkbox (yes/no)
β€”Designβ€”
Placeholder color
Placeholder color
Color
Border color
Border color
Color
Border Radius
In px
Number
Dropdown border Radius (Bottom)
Bottom border radius of open dropdown in px
Number
Border Width
In px
Number
Background color (From)
Background color for multiselection or background color from for single choice
Color
Background color to
Only apply for single item selection
Color
Arrow color
Single choice only
Color
Top separator color
Color of the line between input and dropdown list
Color
Dropdown background color
Dropdown background color
Color
Dropdown text color
Dropdown text color
Color
MultiValue BG From
Specifies the starting background color for multi-selected items, creating a gradient effect when combined with multivalue_bg_to
Color
MultiValue BG To
Sets the ending background color for multi-selected items, used alongside multivalue_bg_from to create a gradient effect across these items.
Color
Multivalue Text color
The text color for multi-selected items
Color
Multivalue Border Color
The border color for multi-selected items
Color
Multivalue Border Radius
The border radius for multi-selected items
Number
Box-Shadow
Select true if you want ot keep box shadow of the input. False to remove it.
Checkbox (yes/no)
Item Box Shadow
Select true if you want ot keep box shadow of the item. False to remove it.
Checkbox (yes/no)
Active options BG Color
The background color of the options in the dropdown on hover
Color
Active options text Color
The text color of the options in the dropdown on hover
Color
Scroll duration (ms)
The time (in milliseconds) for the dropdown list to scroll to a specific item, enabling smooth transitions and improving navigation experience.Number
Disable
Controls whether the input field is active or inactive; when set to true, it prevents user interaction by disabling the input.
Checkbox (yes/no)
Disable Opacity
Number between 0 and 1 for opacity when input is disabled
Number
β€”Repeating Group Settingsβ€”
For a better experience in RG, please fill this section if you are using the Selectize Dropdown in a RG. You have two choice. 1 is just to expeand RG according to the dropdown height. When dropdown close, it will go back to initial height. Second option need you to set ID Attribute of the RG and the current cell index. This will set a different z-index when item open and allow overflow for RG.
RG Display
Fill this only if you are using the drodpdown in a RG. Available options: Overflow, Expand
Dropdown (optional)
RG ID Attribute
Use the same ID Attribute set in RG.
Text (optional)
Cell index
You just need to use β€œCurrent cell index” in this field.
Number (optional)
β€”Search options and designβ€”
Search Conjunction
Specifies how multiple search terms are combined in the search field, typically using "AND" or "OR" logic to refine search results.
Dropdown
Search BG Highlight
The background color used to highlight matched text within the dropdown search results, helping users easily identify matching terms.
Color
Highlight Bold?
Determines if matched search text within the dropdown results is displayed in bold, enhancing visibility of matches
Checkbox (yes/no)
Highlight Underline?
Enables an underline style for matched search text within dropdown results, making it easier to identify search matches.
Checkbox (yes/no)
Active BG from
Selected item bg from
Color
Active BG to
Selected item bg to
Color
Active Text Color
Selected item Font Color
Color
Active Border Color
The border color of the actively selected item
Color
Remove Separator Color
Defines the color of the separator line between items in the container when a "remove" button is displayed for each selected item. This color is applied to the left border of each "remove" button separator, which visually separates the items in the select input.
Color
Active Remove Separator Color
Defines the color of the separator line for the "remove" button when an item is in an active or selected state
Color
Multivalue Item padding
Space delimited list of padding (up to 4 number). Following CSS rules. Please enter px. Example 2px 6px
Text
Input padding
Space delimited list of padding (up to 4 number). Following CSS rules. Please enter px. Example 2px 6px
Text
Input Padding (Multi)
When item selected Space delimited list of padding (up to 4 number). Following CSS rules. Please enter px. Example 2px 6px
Text
Input Margin (Multi)
When item selected Space delimited list of margin (up to 4 number). Following CSS rules. Please enter px. Example 2px 6px
Text
Item Text Shadow
Defines the shadow effect for the text inside each selected item in a multi-select input, giving it a slightly raised or highlighted appearance.
Checkbox (yes/no)

Element Actions

  1. Set Focus - focuses the selectize input, clears any selections, and optionally adds a default item.
Image without caption
  1. Clear Items - clears all selected items in the selectize input and resets relevant states to null or empty arrays.
Image without caption
  1. Set selected Items - Be aware that this action will trigger Item Added event. Use state before and after to avoid triggering this event
    1. Image without caption
      Title
      Description
      Type
      Selected item(s)
      Should be the same thing that you use in initial value field. Provide a CSV list of items. You need to use the same list used in β€œdynamic field id” or β€œStatic list”
      Text
  1. Open Dropdown - opens the selectize dropdown menu, allowing users to view options immediately.
Image without caption
  1. Close Dropdown - closes the selectize dropdown menu, hiding the options from view.
Image without caption
  1. Blur input - removes focus from the selectize input, deactivating it.
Image without caption
  1. Add item - adds a specified item to the selectize input
    1. Image without caption
      Title
      Description
      Type
      Item ID
      represents the unique identifier of the item you want to add to the selectize input. It should correspond to the id of an item already available in the selectize options list.
      Text
  1. Remove item - removes a specified item from the selectize input
    1. Image without caption
      Title
      Description
      Type
      Item ID
      represents the unique identifier of the item you want to remove from the selectize input. It should correspond to the id of an item already present in the input
      Text
  1. Refresh Option List - reloads and refreshes the selectize input options by clearing the existing options and adding new ones, utilizing dynamic data or a static list with customizable fields and grouping options. Be aware that this item will trigger Item Creation. Use state before and after to avoid triggering this event
    1. Image without caption
  1. Update option - updates an existing option in the selectize input
    1. Image without caption
      Title
      Description
      Type
      New value
      New value. This can be the same as Current value
      Text
      New ID
      New ID. If you have created an item in DB, this si what you should use
      Text
      Current ID
      Enter the Current ID of the item you wan’t to update. If this is from item created by user, use the value.
      Text

Exposed states

Title
Description
Type
Last Value Added
The display value of the last item added. It allows tracking of the visible name or text associated with the most recently added item.
Text
All Values
Keeps track of all selected display values. This array lists the visible names or labels of each item selected, giving a user-friendly view of selected options.
Text(list)
Last ID Added
The ID of the most recently added item
Text
All Values ID
Maintains a list of all selected item objects currently in the selectize input. Available only for nonAPI data.
As dynamic list specified in plugin settings(list)
Focused
Whether the selectize input is currently focused
yes/no
Dropdown Open
Whether the dropdown menu is open (true) or closed (false)
yes/no
Last Index Added
The index of the most recently added item in the selectize input
Number
All Index
Keeps an array of indices corresponding to each selected item. It tracks the order or index of every item selected, offering an additional way to reference selected items.
Number(list)
Search value
Holds the latest string typed by the user in the selectize input. This captures real-time search input, which can be used for filtering or custom behaviors.
Text
Last Value Removed
Stores the display value of the most recently removed item, allowing visibility into the last deselected or deleted option by its display name.
Text
Last Id Removed
Holds the ID of the last removed item, tracking which item was most recently deselected or deleted.
Text
Last value created
Stores the value of the most recently created item. This is used when a new option is dynamically created and added by the user, capturing the last custom item added.
Text
All ID (Text)
Maintains a list of all selected item IDs currently in the selectize input. This state reflects the identifiers of every item selected by the user.
Text
Initialized
Reflects the initialization state of the selectize component. It’s set to true once selectize has completed loading, which can be useful for timing other setup actions.
yes/no

Element Events

Title
Description
Item Added
Triggered when a new item is added to the selectize input, signaling that a selection has been made and is now part of the selected options.
Item Removed
Triggered when an item is removed from the selectize input, indicating that a previously selected item has been deselected or deleted.
Is Focused
Triggered when the selectize input gains focus, allowing UI components or other processes to respond when the input becomes active.
Dropdown Open
Triggered when the selectize dropdown menu opens, indicating that the user is actively viewing the available options.
Dropdown Close
Triggered when the selectize dropdown menu closes, which can be used to perform actions once the options are no longer visible.
Is Blur
Triggered when the selectize input loses focus, signaling that the user has clicked away or moved to another part of the interface.
Item Created
Triggered when a new item is created and added to the selectize options dynamically, often due to custom input by the user.
Is initialized
Triggered once the selectize component has been initialized and is fully loaded, often used for timing setup actions or UI adjustments.
Image without caption

Changelog