SearchBox Pro - Dropdown
Overview
SearchBox Pro is the ultimate search solution for Bubble applications, delivering a premium search experience with instant results across multiple data fields.
Unlike basic search inputs, SearchBox Pro offers a complete search solution with multi-field searching, real-time filtering, highlighted matches, and an elegant dropdown interface that modern apps demand.
Key Features
- Lightning-Fast Search Experience: Real-time results appear as users type
- Professional Multi-Field Search: Search across multiple fields simultaneously
- Selectable Dropdown Results: Display results in an elegant, selectable dropdown
- Full RTL Support: Perfect for Arabic, Hebrew, and other right-to-left languages
- Smart Result Highlighting: Keywords are automatically highlighted in search results
- Rich Results Display: Show multiple fields per result in a structured format
- Complete Customization: Control colors, placeholder text, "no results" messages, and more
- Mobile-Optimized: Responsive design works beautifully on all devices
- Bubble Workflow Integration: Trigger workflows when items are selected or reset
Getting Started
Adding the Plugin to Your App
- Go to Plugins tab in your Bubble editor
- Click Add plugins
- Search for "SearchBox Pro"
- Click Install
Basic Setup
- Drag a SearchBox Pro element onto your page
- In the Property Panel, configure the data source under Data Source
- Set up search fields by configuring Search Field 1, Search Field 2, and Search Field 3
- Customize the appearance to match your app's design
Properties
Data Configuration
Property | Description |
---|---|
Data Source | The data type to search through (e.g., Users, Things, etc.) |
Data Search Field 1 | Primary field to search (required) |
Data Search Field 2 | Secondary field to search (optional) |
Data Search Field 3 | Tertiary field to search (optional) |
Dropdown List Field 1 | Primary field to display in results (defaults to Data Search Field 1 if not set) |
Dropdown List Field 2 | Secondary field to display in results (defaults to Data Search Field 2 if not set) |
Dropdown List Field 3 | Tertiary field to display in results (defaults to Data Search Field 3 if not set) |
Dropdown List Field 4 | Fourth field to display in results (defaults to Data Search Field 4 if not set) |
Dropdown List Field 5 | Fifth field to display in results (defaults to Data Search Field 5 if not set) |
Selected Item Caption | Field to use as the value when an item is selected |
Selected Item Placeholder Caption | Field to display in the input when an item is selected |
Max Items | Maximum number of results to show in the dropdown |
No Results Text | Custom message to display when no search results are found |
Default Selected Item | The value of the item to be selected by default on page load. Should match a value from the Default Selected Field |
Default Selected Field | The data field to check for a match with Default Selected Item . If not provided, all search fields will be checked |
Enable Add Item | Show an "Add Item" button in the dropdown. Options: Off , No Results , Always |
Add Item Label | Custom text for the "Add Item" button |
Add Item Icon | Material Icon code for the "Add Item" button icon |
On Focus | Legacy property - use Primary Color instead |
Appearance
Property | Description |
---|---|
Primary Color | Main color used for focus state, hover background, and highlight text |
Input Background | Background color of the search input box |
Dropdown Background | Background color of the dropdown results list |
Placeholder | Text to display when nothing is entered |
Placeholder Color | Color of placeholder text and search icon |
No Results Text | Message to display when no results match the search |
Direction | Text direction (LTR or RTL) |
Show Search Icon | Whether to display the search icon (binocular) |
Dark Mode | When set to true, applies a pre-defined dark theme to the component |
State Control
Property | Description |
---|---|
Disabled | When set to true, the search component will be disabled |
Clear Trigger | When triggered, clears the current selection |
Reset Trigger | When triggered, completely resets the search field and states |
States
State | Type | Description |
---|---|---|
is_loading | Boolean | True while the search component is loading data |
selected_value | Text | Value of the currently selected item from the dropdown |
add_item_input | Text | The current search query when the "Add Item" button is clicked |
Events
Event | Description |
---|---|
Item Selected | Triggered when a user selects an item from the dropdown |
Add Item Clicked | Triggered when the "Add Item" button is clicked |
Clear Selection | Triggered when the search input is cleared |
Search Reset | Triggered when the search is reset |
Initialized | Triggered when the search component is fully initialized |
Advanced Usage
Handling RTL Languages
SearchBox Pro provides full support for right-to-left languages like Arabic and Hebrew. To enable RTL mode:
- Set the Direction property to RTL
- All text alignment and icon positioning will automatically adjust
Customizing Result Display
You can control which fields are displayed in the search results independently from the fields being searched:
- Use Data Search Field 1-5 to determine which fields are included in the search
- Use Dropdown List Field 1-5 to control which fields appear in the results and in what order
- Use Selected Item Caption to specify which field value gets stored when an item is selected
- Use Selected Item Placeholder Caption to control what text appears in the input after selection
Customizing Messages and Labels
- No Results Text allows you to customize the message shown when no search results are found
- Add Item Label and Add Item Icon control the appearance of the "Add Item" button
- Enable Add Item determines when the "Add Item" button appears (Never, On No Results, or Always)
Styling with Custom Colors
SearchBox Pro offers comprehensive color customization:
- Primary Color controls focus border, hover background, and highlight text
- Input Background sets the search box background
- Dropdown Background sets the results dropdown background
- Placeholder Color changes both the placeholder text and search icon color
- Dark Mode applies a pre-configured dark theme to all elements
Use Cases
- E-commerce product search: Allow users to quickly find products
- Content libraries and knowledge bases: Search through articles and documentation
- User directories and member listings: Find users by multiple criteria
- Data-heavy applications: Provide efficient access to large datasets
- Multilingual applications: Support for both LTR and RTL languages
- Any app where quick search functionality enhances user experience
Troubleshooting
Search Results Not Appearing
- Ensure your Data Source is properly configured
- Check that at least one Data Search Field is set to a valid field
- Verify the search fields contain text data that can be searched
Styling Issues
- If text appears cut off in results, adjust your app's global CSS to ensure it doesn't interfere
- For RTL languages, make sure the Direction property is set to RTL
Performance Considerations
- For very large datasets, consider using filtered data sources to improve performance
- Limit the Max Items property to a reasonable number (10-20) for better performance
FAQ
Q: Can I search across different data types?
A: No, each SearchBox Pro instance can only search one data type, but you can have multiple instances on a page.
Q: How do I make the search case-sensitive?
A: SearchBox Pro searches are case-insensitive by default and cannot be changed.
Q: Can I customize the appearance of the dropdown items?
A: Yes, through the various color properties and by choosing which fields display in the results.
Q: How do I trigger a workflow when a user selects a result?
A: Use the "Item Selected" event in your workflow.