HOW TO
In ArcGIS Online Map Viewer, descriptive details of features within a map are displayed through pop-ups. Pop-ups can display attachments, charts, images, texts, and links to external web pages. In some cases, the pop-up display includes special character strings in each field and these characters must be replaced. The task of replacing these fields is simpler with Arcade expressions.
This article provides instructions to replace multiple text or special characters in a single string using Arcade expressions in ArcGIS Online Map Viewer.
var str=Replace($feature.Notes, '&', 'and') //Replace & to spell and var str1=Replace(str, '#', 'No.') // Replace # with the word No. var str2=Replace(str1, '\ ', ' ') // Replace \ with a blank space Replace(str2, '/', ' ') // Final replacement to return the result
The image below shows the pop-up of the standard Notes field.
The image below shows the pop-up of the Notes field with the Arcade expression.
Get help from ArcGIS experts
Download the Esri Support App