HOW TO

Import or export an Arcade script for pop-ups in ArcGIS Pro

Last Published: October 10, 2023

Summary

Custom expressions written in Arcade can be used to configure pop-ups in ArcGIS Pro. These expressions can be imported or exported as a label expression file (.lxp). This article provides the steps to import and export custom expressions in ArcGIS Pro. In this example, a new field (Species General Name Expression) is added to the pop-up using the Species Code field as a reference to display the full name of the fish species of each point symbol.

Procedure

Import the Arcade expression

  1. Start ArcGIS Pro and open the project.
  2. In the Contents pane, right-click the feature class and click Configure Pop-ups to open the Configure Pop-ups pane.
Opening the Configure Pop-ups tool of the feature class from the Contents pane
  1. Click Expressions, and click New.
  2. In the Expression Builder dialog box, configure the parameters for the Arcade expression.
    1. For Name, rename the new expression.
    2. For Title, specify a title for the new expression. In this example, the title is Species General Name Expression.
    3. Below the Expression dialog box, click Import The Import icon .
    4. Navigate to and select the Label Expression File (LXP) file. Click OK.
The Expression Builder and Import dialog box
  1. Click Verify to run a test of the expression. If the expression is valid, click OK.
The Expression Builder dialog box
  1. In the Configure Pop-ups pane, click Back The Back icon and click Edit pop-up element.
The location of the Edit pop-element icon in the Configure Pop-ups pane
  1. Ensure the newly created expression check box is checked in the Fields Options pane. If required, click and drag the newly created expression to a new position.
The Fields Options pane

The newly configured pop-up displays the Species General Name Expression field.

The pop-up display

Export the Arcade expression

  1. Start ArcGIS Pro and open the project.
  2. In the Contents pane, right-click the feature class and click Configure Pop-ups to open the Configure Pop-ups pane.
Opening the Configure Pop-ups tool of the feature class from the Contents pane
  1. Click Expressions, and click Edit expression The Edit expression icon for the target expression to be exported.
  2. In the Expression Builder dialog box, click Export The Export icon to export the Arcade expression.
  3. Navigate to the desired folder and click Save.
The Export dialog box

Article ID: 000031288

Software:
  • ArcGIS Pro 3 1
  • ArcGIS Pro 3 0
  • ArcGIS Pro 3 2

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