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
- Start ArcGIS Pro and open the project.
- In the Contents pane, right-click the feature class and click Configure Pop-ups to open the Configure Pop-ups pane.
- Click Expressions, and click New.
- In the Expression Builder dialog box, configure the parameters for the Arcade expression.
- For Name, rename the new expression.
- For Title, specify a title for the new expression. In this example, the title is Species General Name Expression.
- Below the Expression dialog box, click Import .
- Navigate to and select the Label Expression File (LXP) file. Click OK.
- Click Verify to run a test of the expression. If the expression is valid, click OK.
- In the Configure Pop-ups pane, click Back and click Edit pop-up element.
- 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 newly configured pop-up displays the Species General Name Expression field.
Export the Arcade expression
- Start ArcGIS Pro and open the project.
- In the Contents pane, right-click the feature class and click Configure Pop-ups to open the Configure Pop-ups pane.
- Click Expressions, and click Edit expression for the target expression to be exported.
- In the Expression Builder dialog box, click Export to export the Arcade expression.
- Navigate to the desired folder and click Save.