Select to view content in your preferred language

Search Widget - Search Method

831
3
01-25-2024 03:06 PM
Athe9999
New Contributor

Hi, Is there a way to set the search method to just one character? Right now, it needs at least 3 characters to show the suggestions. Thanks.

0 Kudos
3 Replies
HonghongLi
Esri Contributor

Hi, currently, the Search widget in Experience Builder requires a minimum of 3 characters to display suggestions without additional actions. However, if you input only one character and press 'Enter' on your keyboard, you will also see all suggestions. This design choice is intentional, as keywords with fewer than three characters can generate inaccurate suggestions when users have large datasets. Therefore, by default, suggestions will be shown only when at least three characters are entered.

0 Kudos
MDB_GIS
Frequent Contributor

This same logic does not apply in dashboards, and it is very annoying. We have a hydrant ID that ranges from 1-4 characters long. If I search for a 1-2 character hydrant ID, no results ever pop up. If I hit enter, then it just takes me to the closest match. Never gives me a list to choose from. 

0 Kudos
AndresCastillo
MVP Alum

two suggestions to get your data to show suggestions when a user inputs the id in the search widget in expb and/or web map settings:

1

If the ID is one to two characters:

create a view on top of your layer, adding as many blank spaces as needed to the id string value until the total characters amount to 3.

use the view with the search configuration.

2

make an id column with at least three characters.

0 Kudos