I have a piece of code that does reverse geocode. I need to attach that to the onclick event of the map. Where to put that in the Web App generated by web AppBuilder
The best place would be to create a custom widget. You can create an "in panel" widget if you want to display the results of the reverse geocode to the user or if you just need to work with the results in code only then just create an "off panel" widget. Create a custom in-panel widget—Web AppBuilder for ArcGIS (Developer Edition) | ArcGIS for Developers
I will try the off panel option as all I need is to respond to the onclick event without any HTML interface.
my widget does this: Location Widget
Retrieving data ...