The field map is used by the Transfer Attributes tool and other editing tools that copy attributes from one feature layer and paste them to other features. You can map fields, automatically match corresponding fields, and embed ArcGIS Arcade expressions.
The attribute field map is available on the Edit tab, in the Tools group from the dialog box launcher, and in the Transfer Attributes tool pane by clicking the Editor Settings button .
- On the Edit tab, in the Tools group, click the Editor Settings dialog box launcher .
- Click Field Mapping.
- Click the Fields tab and choose a source and target feature layer.
- Click the Source drop-down arrow and choose a source layer.
- Click the Target drop-down arrow and choose a target layer.
- To reset, clear, or automatically match fields, click the following tools on the toolbar:
- Reset —Restores the field mapping to the last saved settings.
- Auto Match —Automatically maps fields based on matching field name and data type. This is the default setting.
- Clear —Overrides the current field mapping to explicitly transfer no attributes.
- To code or edit ArcGIS Arcade expressions, click the Expression tab.
Changing settings on the Fields tab overrides the current expression. When this occurs, you must reenter the expression.
- Reset —Restores the expression to the last saved settings.
- Verify —Checks for syntax errors. The line number and reason are shown in the error message.
- Import —Imports a label expression (LXP) file.
- Export —Exports the expression to a label expression (LXP) file.
- Click OK to save your settings and close the dialog box.
Using the field mapping profile, you can code ArcGIS Arcade expressions to perform calculations and return values used by a specific function. For example, you can query the current value of a target field and copy the source attribute value only if it is greater than the target value.
Field values maintain their data type, and multiple lines separated by a comma are allowed in the same window. Input and output types are determined by the profile of the function for which the expression is evaluated.
The following example copies the values in the source feature fields Elevation and Rotation to the target fields with the same name.
"Elevation" : $sourceFeature['Elevation'],
"Rotation" : $sourceFeature['Rotation']