HOW TO

Ausschließen, dass die Zeit im Datumsfeld in Pop-ups in ArcGIS Online angezeigt wird

Last Published: January 26, 2024

Zusammenfassung

Custom expressions written in the Arcade expression language can be used to configure pop-ups in ArcGIS Online. Expressions can be used to modify the field values displayed in a layer's existing field.

This article provides the steps to exclude the time values displayed in a date field pop-up in ArcGIS Online Map Viewer. In this example, the field values in the UPDATED field is referenced as seen in the image below.

The UPDATED field with the time value to be excluded

Vorgehensweise

  1. Open the map in Map Viewer. Click Layers on the Contents (dark) toolbar, and select the with the pop-up for editing.
The Map Viewer Contents (dark) toolbar with the Layers tab
  1. Click Configure pop-ups on the Settings (light) toolbar > Options > Attribute expressions.
The Map Viewer Pop-ups pane used to navigate to the Map Viewer Pop-up expressions pane
  1. Click + Add expression to open the Arcade expression editor window.
The Map Viewer Pop-up expressions pane with the Add expression icon
  1. Specify the following Arcade expression in the Expression window.
Text($feature.<field name>, 'MMMM D, Y')‍‍‍‍‍‍‍‍‍‍
  1. Rename the New expression, and click OK.
Specifying the Arcade expression in the Map Viewer Expression window
  1. Click the Previous button above the newly created Arcade expression in the Pop-up expressions pane.
The Map Viewer Pop-up expressions pane with the newly added expression
  1. Click Fields list to expand the list of fields displayed in the pop-ups, and click Select fields.
The Map Viewer Pop-up expressions pane displaying the location of the Fields list section
  1. Check the expression field, and click Done.
The Map Viewer Select fields pane to select fields to be displayed in the pop-up

The image below shows the DATE OF UPDATE field with the excluded time values after using the Arcade expression.

The DATE OF UPDATE field with the time values excluded

Artikel-ID:000027471

Benachrichtigungen erhalten und Lösungen für neue oder häufige Probleme finden

Unser neuer KI-Chatbot stellt zusammengefasste Antworten und Videolösungen für Sie bereit.

Esri Support App herunterladen

Zugehörige Informationen

Weitere Informationen zu diesem Thema erkunden

Unterstützung durch ArcGIS-Experten anfordern

An den technischen Support wenden

Esri Support App herunterladen

Zu Download-Optionen wechseln