HOW TO
In ArcGIS Online, a feature layer can be configured to display the status of a deadline based on the date field. This is important to ensure complex projects are kept on track and completed by a specific time frame.
This article describes the workflow to label the status of a deadline based on the date field of a feature layer using ArcGIS Arcade in ArcGIS Online.
Note: This workflow requires the feature layer to have a date field. Refer to ArcGIS Online: Date fields in ArcGIS Online for more information.
IIF (DateDiff($feature.<fieldName>, Today(), 'days') > <dateValue>, "on schedule", IIF(DateDiff($feature.,<fieldName>, Today(), 'days') >= 0, "nearly due", "overdue"))
The image below shows the full working script in the editor window.
The image below shows the status of deadlines are labeled based on the date field of a feature layer in ArcGIS Online.
Get help from ArcGIS experts
Download the Esri Support App