Search is the most used feature in Salesforce, and users expect it to be fast, intelligent, and simple. With global search, users can get right to records and apps by entering simple keywords or using powerful advanced search features.
Global search lives in the header of your app, where it’s highly discoverable and always available for your users.
The placeholder text intelligently adapts to the page a user is on in the org, and lets them know what types of results to expect.
When a user first clicks into the search input, the user's five most recently used records and apps appear in a dropdown list.
Each item shows the object icon, the record name, and the object name.
As the user types, the top five results are shown instantly, allowing users to find what they need without pressing Enter to run a full search.
The secondary field, also called the disambiguation field, provides more context and makes it easier to find the right record in a limited interface.
A "clear" icon appears in the input, making reformulation easy.
Instant results is flexible and can support various user needs. From within the instant results dropdown, users can:
- Use search shortcuts. Shortcuts provide search options for users. The first option is the default action taken when the user presses Enter. Secondary shortcuts include options that allow users to search within the object they're on, pre-scope searches (that is, limit a search to a specific object before entering their keywords), and search other objects. Limit the number of shortcut options to three to avoid pushing the search results too far down.
- Find records and apps without being exact. Instant results supports stemming (returning different forms of a word), synonyms (when synonyms are enabled in an org), and spell-correction.
- Navigate to what they need. Search can also be used to navigate to objects that may not appear in the current app, making search a hub that teleports users wherever they need to be.
Several visual cues help users quickly find the right record:
- Icons help users instantly identify frequently used objects and apps.
- The record name shows highlighted matched characters.
- The object type clearly identifies a record when the user isn’t familiar with the object icon.
- A secondary field, also called the disambiguation field, helps users differentiate similarly named or duplicate records. Characters matching the user's search term are also highlighted here.
Users on slow or mobile connections may experience some performance degradation when results are being returned as they type. Showing a spinner in the input lets the user know that search is still working in the background.
When users know exactly what they need, they can narrow their search to only the record type they need at that moment by starting to type the name of the entity.
Pre-scoping adds a removable pill to the search input. The user can click the “X” or backspace to reset search.
Pre-filtering gives users even more control over what’s searched. Once the user chooses a record type, a secondary link can be displayed to give users advanced search options.
When your users execute a search, we query objects based on personalized usage and intelligent prediction. Those results are returned on a "Top Results" page that groups results together, making it easy to scan relevant results of different record types.
Even when there are no results, users should have an idea of what they can do next. Should they look for more results, create a new record, or check out Trailhead?