examples of using arcade replace function in AGO popups

2640
1
03-30-2018 07:50 AM
deleted-user-eL7_ccoObXzi
New Contributor II

I have a mapping service that contains a text field with spaces in it. The text is a url. AGO turns the first part of the string into hypertext but leaves the string after the space as text. The URL fails to make the correct request because it is not complete. I want to try replacing the space with another character like % to see if that will execute. I am not finding a lot of good arcade pop up samples or documentation. Any help is greatly appreciated! 

Thanks! -tom

Tags (1)
0 Kudos
1 Reply
JakeSkinner
Esri Esteemed Contributor

Hi Tom,

Try the following:

Replace($feature.<field name>, ' ', '%')

Ex: