I am curious is there is a simple way to turn off the default "No Information Available" popup when clicking somewhere on a map where there is no spatial data (other than the basemap), or if clicking on a polygon that does not have popups enabled.
In an attempt to remove the popup, I commenting out the line in the code in the /client/builder/nls/main_en.js (line 593) and main_ROOT.js (line 666) files where:
NLS_noInfo : "No information available"
(These two .js files are the only ones with the text "No information available" exists in overall /webappbuilder directory). However this doesn't stop the popup.
I am using WAB 1.2 Developer's Edition on my computer with layers hosted through ArcGIS Online.
It is possible to change the text displayed for 'no information available' areas (the default popup for features that don't have popups enabled and for areas outside of any feature on the basemap).
You need to change 3 lines of code in the \server\apps\(app_id)\jimu.js file:
This way I could change the 'no information available' popup text to something a little less ambiguous.
At this time I cannot find a way to fully disable popups for 'no information available' areas.