Along these same lines, would it be possible for this to be controlled by the "HTML Popup" properties in the layer from ArcMap? This already exists, and seems like it should be controlling visibility of pop-ups already. They seem to allow similar options as AGO/Portal (list of field vs. custom).
When a layer in a published service has popups enabled, you see this in the REST endpoint:
HTML Popup Type: esriServerHTMLPopupTypeAsHTMLText
Conversely, popups disabled in ArcMap show:
HTML Popup Type: esriServerHTMLPopupTypeNone
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.