Description
When selecting a feature in ArcGIS Online Map Viewer, the field does not display the thousands separator for the integers in the pop-up.
Cause
- The thousands separator is not enabled in the field.
- The data type is a string, and the 'Show thousands separator' toggle is only available for numerical field data types.
Solution or Workaround
Enable the thousands separator in the pop-up
In ArcGIS Online Map Viewer, toggle Show thousands separator on to display the thousands separator in the pop-up. Refer to ArcGIS Online: Configure fields for further instructions and information.
Add a numerical field data type to the attribute table
- In ArcGIS Online, add a field with a numerical data type to the attribute table and calculate values for the field.
- Click the Overview tab and click Open in Map Viewer.
- In Map Viewer, configure the field to display the thousands separator. Refer to ArcGIS Online: Configure fields for further instruction.
Use a custom Arcade expression
Note:
This workflow is only applicable to fields with a numerical data type.
- In Map Viewer, click Layers on the Contents (dark) toolbar and select the layer with the pop-up for editing.
- Click Pop-ups
on the Settings (light) toolbar, and click Options > Attribute expressions. - In the Attribute expressions pane, click Add expression to open the Arcade expression editor window.
- In the editor window, specify a name for the new expression.
- In the Expression dialog box, insert the following Arcade expression.
Text($feature.field_name, '#,###')
- Click Run for a preview of the expression result.
- If the required result is achieved, click Done.