HOW TO

Automatically display the in-panel widget window in Web AppBuilder for ArcGIS

Last Published: April 25, 2020

Summary

In Web AppBuilder for ArcGIS, the in-panel widget can be set to automatically start upon loading the web map. However, by default, even if the in-panel widget is started, it is required to click the widget to display the Legend window. In the Web AppBuilder for ArcGIS widgets configurations, each in-panel widget contains a Boolean property, openAtStart, which is set as false by default. For more information about in-panel and off-panel widgets, refer to the following web help document, Web AppBuilder for ArcGIS (Developer Edition): In-panel and off-panel widgets.

This behavior can be altered by modifying the openAtStart property in the app config.json file.

Procedure

The instructions provided describe how to change the attribute of the openAtStart property to true to allow the in-panel widgets window to display automatically.
  1. Open the app config.json file in the server\apps\selected app folder using a text editor, (for example, Notepad or Notepad++).
  2. Search for the desired widget in the config.json file to locate a specific code segment.
  3. Modify the "openAtStart" section to 'true'. The final code may vary depending on the versions used:
"widgets:[ ]") "widgets":[ 
{ 
"uri":"widgets/Legend/Widget", 
"version":"4.3", 
"openAtStart": true, 
}]

Article ID:000014464

Software:
  • ArcGIS Web AppBuilder

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options

Related Information

Discover more on this topic