Search Settings 
The Search component finds spatial data and locations on the map.
The Search settings include the following:
Main Settings
-
Title: Type a title to display for the component. This title is used both in Web and Designer.
-
Icon: To select an icon to represent the component, click Select Icon, click the desired icon and click OK. To remove the icon, click Clear Icon.
-
Maximum Results: Type in the maximum number of search results to display on a single page. The default is set to 50.
-
Maximum Search Suggestions: Type in the maximum number of search suggestions to offer a user. The default is 6.
-
Geocoder Enabled: Whether to use the geocoder as part of the search results. The default is true.
Events
Search Cleared
The command to run when the user clears the search box. A command is an action the app should perform.
Some commands have additional settings you can configure.
To add a command:
-
In the Components panel, select Search.
-
If necessary, in the Search panel, click
to expand the Events section.
-
Under Search Cleared, click Select Command.
A window appears that lets you select a command, workflow, or report.
-
Click one of the following tabs as appropriate:
-
Commands: Select the command you want to run, and click Select.
-
Workflows: Select the workflow you want to run, and click Select. Alternatively, to create a new workflow, click Create a new Workflow. After adding the workflow, you can set its Title and Icon.
-
Reports: Select the report you want to run, and click Select.
-
To turn your command into a custom command, click . A code box appears in which you can manually edit the JSON code for the command. Turning your command into a custom command is a one-way operation. While editing the custom command in the code box, press CTRL+Space to access code suggestions. You can specify a sequence of multiple commands.
To convert commands into a workflow, first click to customize the commands, and then click
. Converting commands into a workflow cannot be reversed. This option is not available for on-premises Workflow installations that are not installed in the default installation folder.
To change the command:
-
In the Components panel, select Search.
-
If necessary, in the Search panel, click
to expand the Events section.
-
Under Search Cleared, click the box that contains the current command followed by
.
-
Select a command and click Submit.
To delete the command:
-
In the Components panel, select Search.
-
If necessary, in the Search panel, click
to expand the Events section.
-
Under Search Cleared, beside the current command, click
.
Search
The command to run when the user performs a search. A command is an action the app should perform.
Some commands have additional settings you can configure.
To add a command:
-
In the Components panel, select Search.
-
If necessary, in the Search panel, click
to expand the Events section.
-
Under Search, click Select Command.
A window appears that lets you select a command, workflow, or report.
-
Click one of the following tabs as appropriate:
-
Commands: Select the command you want to run, and click Select.
-
Workflows: Select the workflow you want to run, and click Select. Alternatively, to create a new workflow, click Create a new Workflow. After adding the workflow, you can set its Title and Icon.
-
Reports: Select the report you want to run, and click Select.
-
To turn your command into a custom command, click . A code box appears in which you can manually edit the JSON code for the command. Turning your command into a custom command is a one-way operation. While editing the custom command in the code box, press CTRL+Space to access code suggestions. You can specify a sequence of multiple commands.
To convert commands into a workflow, first click to customize the commands, and then click
. Converting commands into a workflow cannot be reversed. This option is not available for on-premises Workflow installations that are not installed in the default installation folder.
To change the command:
-
In the Components panel, select Search.
-
If necessary, in the Search panel, click
to expand the Events section.
-
Under Search, click the box that contains the current command followed by
.
-
Select a command and click Submit.
To delete the command:
-
In the Components panel, select Search.
-
If necessary, in the Search panel, click
to expand the Events section.
-
Under Search, beside the current command, click
.
Visibility Filters
Visible To
The Visible To settings determine which users and groups can access this component. If no users or groups are specified, all users can access this component by default.
The Hidden From setting overrides this setting.
To add a user:
-
In the menu on the right, select Users.
-
In the menu on the left, select the name of the user you want to add.
To quickly find a user, click the menu on the left and start typing the name of the user.
To add a group:
-
In the menu on the right, select Groups.
-
In the menu on the left, select the name of the group you want to add.
To quickly find a group, click the menu on the left and start typing the name of the group.
There are three special groups that are always available even if no Esri groups have been configured:
-
All Users: Any user regardless of whether they are signed in or not.
-
Anonymous Users: Users who are not signed in.
-
Authenticated Users: Users who are signed in.
-
To remove a user or group:
-
Click the X beside the name of the user or group.
Hidden From
The Hidden From setting determines which users and groups are explicitly forbidden to access this component.
This setting overrides the Visible To setting.
To add a user:
-
In the menu on the right, select Users.
-
In the menu on the left, select the name of the user you want to add.
To quickly find a user, click the menu on the left and start typing the name of the user.
To add a group:
-
In the menu on the right, select Groups.
-
In the menu on the left, select the name of the group you want to add.
To quickly find a group, click the menu on the left and start typing the name of the group.
There are three special groups that are always available even if no Esri groups have been configured:
-
All Users: Any user regardless of whether they are signed in or not.
-
Anonymous Users: Users who are not signed in.
-
Authenticated Users: Users who are signed in.
-
To remove a user or group:
-
Click the X beside the name of the user or group.
Layout
-
Slot: Select the slot to position the component within the Map component. In addition to the various positions on the map such as Top Left and Bottom Center, you can position the component within the map context menu, which appears when the user right-clicks the map. You can also position the component within the Popup slot, which appears at the mouse cursor.
This setting only appears when the component is within the Map component.
-
Margin (px): The margin space around the component in pixels.
-
Initially Hidden: Specifies whether or not the component is initially hidden when the app loads. If selected, the component remains hidden unless activated, for example, by the
Show
command. -
Map: The Map component this component affects. This setting cannot be modified if this component is either a subcomponent of a Map component or there is only a single Map component in the app.