gsinner

Popup link with URL that includes parameter from attribute value?

Discussion created by gsinner on Apr 1, 2014
Latest reply on Apr 15, 2015 by TPL_Smitty
Is it possible to configure a popup in a webmap to include a link that consists of a URL with a "replaceable" parameter that comes from an attribute value for the selected feature?  For example, given point features with an attribute named "UNIQUEID", how could I define a popup with a link that displays in the popup as "Details" with the underlying URL of something like:
http://www.mydomain.com/Reports/FacilityDetail.asp?facid=UNIQUEID

When the user clicks on the "Details" link in the popup, the "UNIQUEID" parameter in the URL would be replaced with the value of the selected feature's UNIQUEID attribute, e.g.,
http://www.mydomain.com/Reports/FacilityDetail.asp?facid=12516

And then the updated URL would be opened in a new page in the browser.

I'm an ArcGIS Online neophyte, and haven't been able to find any documentation that leads me to think this is possible "out-of-the-box".  If it's not possible out-of-the-box, can it be done in JavaScript and then the template get shared within the organization?  Do you know of any examples for similar functionality?

Thanks!

Gary

Outcomes