Select to view content in your preferred language

URL link in ArcGIS Online Dashboard table

136
3
Saturday
Labels (1)
YosefBodovski1
New Contributor

Hello, I am trying to generate clickable links in the ArcGIS Dashboard table for the field called 'MyURL'.

Here is the 'displayText' Arcade expression I am trying to use: 

displayText : `<a href = ${$datapoint["MyURL"]} target = "blank"> ${$datapoint["MyURL"]} </a>`,
 
Unfortunately all links point to the original dasboard site and not to the URL listed in the field. 
Does anyone know what the problem is? Thanks!
0 Kudos
3 Replies
AndreasHall
Esri Contributor

I think you are missing a couple of " in your expression. Try this expression instead:
 
`<a href = "${$datapoint["MyURL"]}" target = "blank"> ${$datapoint["MyURL"]} </a>`

0 Kudos
YosefBodovski1
New Contributor

Thanks for the advice, but missing " wasn't the issue. I think I figured this one out. The URL needs to contain the 'https://' prefix to work properly within ArcGIS Online system. For example it need to appear as 'https://www.wikipedia.org/' and not as 'www.wikipedia.org

0 Kudos
y1uresh
New Contributor

Maybe try creating a new field in the popup using arcade to use html to create a link https://omegle.onl/ ?

0 Kudos