Can a custom widget be used to add a button to the map's popup?

05-24-2018 12:18 PM
New Contributor

I would like to add a functionality to my app created by WAP that is basically the following:

1) Select a feature by clicking on it on the map

2) Have a button that will send the info of that feature by email.

But I would like to have this following WAP's guidelines, as in a custom widget.

My questions are :

1) Is it possible to add a button to the base popup?

2) How can I get the current Feature that the map's popup is showing?

0 Kudos
1 Reply
MVP Emeritus


  1.  Yes you just need to create a FeatureAction Create a feature action in your widget—Web AppBuilder for ArcGIS (Developer Edition) | ArcGIS for De... 
  2. The map.infoWindow is a Popup Class by default and you can get the selected feature from the map.infoWindow.getSelectedFeature()
0 Kudos