Is it possible to automatically set a new infowindow for the whole map (all layers) in WebAppBuilder by a widget?
One possible solution would be checking all the added layers, overriding them, listening to the new added layers and doing the same. But this is not universal, as there are so many different layer types and some do not reveal their service URL (needed for configuring the popup content).
We have created a custom widget in WebAppBuilder that adds pre-configured layers (similarly to the Query widget) to the map and shows a custom built popup (infowindow) for those layers.
The issue is wanting to use a custom popup infowindow with more features than the default one uses, such as: resize, move, content in tabs, and more.... And instead of defining the configuration for each layer (user manually setting service in the widget configuration panel), it would be much easier if the widget automatically overrides all of the layers infowindows.
Hmm. I see what you are trying to do now. This is a pretty complicated workflow. Currently I have never thought of this type of workflow. Sorry it would take a good deal of thought and investigation to even come up with a suggestion.