You are here:
Location and Address Search in Public Sector
Let users find location and address records by typing what they actually know, such as a place name, a street, or a city, instead of using an autogenerated record number.
Required Editions
| User Permissions Needed | |
|---|---|
| To use the Location Address Picker: | Read access on Location and Address objects AND Public Sector Access |
| To add the component to flows: | Manage Flow |
| To add the component to Omniscripts: | OmniStudio Admin permission set |
Location and Address Picker is a Lightning web component (LWC) that lets users search for and select location and address records by name, avoiding the usability problem of having to search through autogenerated record numbers to find the right record. You can expose this LWC without code in either of the following contexts:
- Screen flows: Add the location and address picker to a screen in Flow Builder.
- Omniscripts: Embed the picker as a step in an Omniscript.
In both contexts, the component surfaces the ID of the location record and the ID of the address record that the user selects. Reference those IDs in later elements of the flow or later steps of the Omniscript. For example, to associate a new visit record with the correct address.
How It Works
- 1. Search for a Location
- When the page loads, the component fetches recently viewed locations. Users can select from the list or type to search. When users type 3 or more characters, the component searches for matching location records and displays up to 10 results. To see more results, users can type additional characters to narrow the search.
- 2. Search for an Address
- After a location is selected, the Address field becomes active and displays recently viewed addresses for that location. Users can select from the list or type to search. When users type 1 or more characters, the component searches for matching address records and displays up to 10 results.
The search uses wildcard matching, so it finds matches at the beginning, middle, or end of the text. For example, searching for Park returns results such as Park City, Central Park West, Highland Park, and Park.
Addresses in the search results display as a concatenation of street, city, and state information, making it easy for users to identify the correct address. When both a location and address are selected, the component displays a map of the address.
