HOW TO

Change Display Field using ArcGIS Server Services Directory REST API

Last Published: August 16, 2023

Summary

When editing features in ArcGIS Online Map Viewer, the display field shows the default field of the layer. A desired display field can be changed to better help visualize the category of the data using ArcGIS Server Services Directory REST API to facilitate more informative visualization of the underlying data categories. It is useful to select a different display field to portray intricate data relationships and patterns clearly which helps make informed decision processes and understand geographic information being explored.

The image below shows the default display field when selecting the features in ArcGIS Online Map Viewer. In this example, the 'SpringOne' layer displays the 'OBJECTID' field.

Default display field.

Procedure

  1. Log into ArcGIS Online with administrator credentials.
  2. On the My Content tab, click the hosted feature layer. In this example, 'SpringOne'.
  3. Scroll to the bottom of the page and click View at the URL section. This opens the ArcGIS REST Services Directory.
Click view at URL section.
  1. Click Admin to access the service with administrator privilege.
  2. Click the layer. In this example, the 'Springs' layer.
Click on layer in featureserver page.
  1. Scroll down to the bottom of the page, and click Update Definition.
Click Update Definition.
  1. Search for displayField using Ctrl + F on the keyboard. Enter the field to display in the displayField parameter. In this example 'FType' is entered.
Search for displayField and replace the empty code between with FType.
  1. Search for lasteditdate using Ctrl + F on the keyboard. In the first line of 'lasteditdate', remove the numbers and replace them with quotation marks with a blank space between the quotation marks.
  1. Click Update Layer Definition.
Search for 'lasteditdate' and Update Layer Definition.
  1. Click Close and pressing F5 on the keyboard to refresh the page.
  2. Click Open In Map Viewer.
  3. Click Edit Edit icon. on the Settings (light) toolbar.
  4. Click Select under Edit features in the Editor pane.
Select in Editor.
  1. Select a feature on the map to view the display field.

The image below shows the layers displaying values from the 'FType' field.

Layer of the fields are changed.

Article ID: 000029884

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