HOW TO

Display the currency symbols in pop-ups for ArcGIS Online Map Viewer

Last Published: January 25, 2024

Summary

When configuring a pop-up to display the price of a feature, the currency symbol is not displayed as the field data type is numerical. The image below shows the Prices field without a dollar sign preceding the value.

A pop-up in Map Viewer.

This article provides a few workflows to display a currency symbol in pop-ups for ArcGIS Online Map Viewer. In this example, the dollar sign is added to the Prices field.

Procedure

Add a new string field to the table

  1. In ArcGIS Online, add a field with a string data type, and calculate values for the field.
  2. In the Expression dialog box, insert the following Arcade expression with the desired currency symbol. In this example, the dollar sign ($) is used.
Text($feature., '$ ###,###,###.00') 
  1. Optionally, delete the original field without the currency symbol in the values. Refer to ArcGIS Online: Delete a field for further instructions.
  2. Configure the pop-up to display the new field. Refer to ArcGIS Online: Configure pop-ups for further instructions.

Use a custom Arcade expression

Note:
This workflow is only applicable to fields with a numerical data type.
  1. In Map Viewer, click Layers on the Contents (dark) toolbar, and select the layer with the pop-up for editing. In this example, the Test2 layer is selected.
The Layers pan in Map Viewer.
  1. Click Pop-ups The Pop-ups icon.  on the Settings (light) toolbar, and click Options > Attribute expressions.
The Pop-ups pane in Map Viewer.
  1. Click + Add expression to open the Arcade expression editor window.
  2. In the editor window, specify a name for the new expression. In this example, the name of the expression is Prices $.
  3. In the Expression dialog box, insert the following Arcade expression with the desired currency symbol. In this example, the dollar sign ($) is used.
Text($feature.<field name>, '$ ###,###,###.00')
  1. Click Run to view a preview of the expression result.
  2. If the required result is achieved, click Done.
The Arcade expression editor window in Map Viewer.
  1. Click Back above the Arcade expression in the Attribute expressions pane.
The Attribute expressions pane in Map Viewer.
  1. Click Fields list to expand the list of fields displayed in the pop-ups and click Select fields.
  2. Check the expression field under the Expressions section and click Done.
The Select fields pane in Map Viewer.

The image below shows the dollar sign displayed in the Prices $ field pop-up.

A pop-up in Map Viewer.

Article ID: 000031639

Software:
  • ArcGIS Online

Receive notifications and find solutions for new or common issues

Get summarized answers and video solutions from our new AI chatbot.

Download the Esri Support App

Related Information

Discover more on this topic

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options