Select to view content in your preferred language

Hyperlinks from related table don't appear in popup

146
2
Tuesday
Labels (2)
BryanPreston
Occasional Contributor

In ArcGIS Pro I created a class relationship between a point layer and a table that contains hyperlinks to other resources.

Also in ArcGIS Pro, I configured the popup with an Arcade expression so it properly displays, with HTML line breaks built into the table. Here is the popup in Pro:
BryanPreston_0-1762276744289.png

Uploading this to AGOL, the popup doesn't work -- it just shows the html garbage. The case where it actually does work is when there is a plaintext url (no html from the table itself) and there is 1 record. The link text defaults to "View."

BUT when the related table has more than 1 record for a particular location, the multiple records' plaintext urls are concatenated, which of course screws up the link and defeats the whole purpose of relating a table.

 

This thread makes me wonder if there is no solution for this in MapViewer:
https://community.esri.com/t5/arcgis-web-appbuilder-questions/trying-to-create-hyperlinks-in-popup-f...

Is this all more flexibly configurable in Experience? 

0 Kudos
2 Replies
Charles_Blanchard
Esri Contributor

Hello @BryanPreston,

The following two posts are from other users who have utilized a custom Arcade expression in order to show their links from a related table correctly in the popup:

https://community.esri.com/t5/arcgis-enterprise-portal-questions/url-link-from-related-table-in-popu...

https://community.esri.com/t5/arcgis-online-questions/displaying-related-table-links-in-popups-arcad...

Please check out the links and let me know if the solutions in these posts help you achieve the popups you're looking for!

Charles Blanchard

Associate GIS Analyst

Esri Canada

BryanPreston
Occasional Contributor

Thanks @Charles_Blanchard,
The first link does provide a decent workaround. A new problem arises, however, when there are many related records that need linked to. For example, there are a few locations in my dataset that are linked to 100 photos, though the large majority only link to 8 or less. If I wanted to display links to ALL photos, then this solution would necessitate displaying 100 individual photo fields for all popups, with those fields almost all those fields blank for all but a few locations.

For now, this can work for my needs, as we can get by not displaying all of the photos for the few locations that are related to an unreasonable number of them. As I understand it, Experience Builder provides more customized options for popups -- but I'm still not sure if there will be options beyond a workaround like this.

0 Kudos