Hi,
I'm new to the web app builder and JavaScript and I'm having a small problem with the settings page of my custom widget.
I have 2 selection boxes listing the feature layers that are in the map, allowing the user to pick two of the layers in the map for use in my widget. The problem I have is on first loading the settings page, the chosen layers from the widgets config file are not being selected in the selection boxes.
When opening the settings page a second time it displays the chosen layers in the selection boxes with no problems.