On the Edit tab, in the Tools group, click the Editor Settings dialog box launcher to configure field mapping. Field mapping specifies how attribute values are copied between features by tools that copy or transfer attributes.
Field mapping is also available from the tool pane on the Editor Settings button with tools that use field mapping.
- On the Edit tab, in the Tools group, click the Editor Settings dialog box launcher .
- Click Field Mapping.
- Set the target and source layers.
- Click the Fields tab.
- Click the Source and Target drop-down arrows and choose the layers containing the fields between which you want to copy attribute values.
- In the Fields table, click a field drop-down arrow in the Source column and map it to the corresponding target field.
Note:
To transfer geometry, map the Shape field to the corresponding target field.
- To reset or clear the field mapping settings, click the appropriate control on the toolbar above the Fields table.
- 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 verify, import, or export an ArcGIS Arcade field expression, click the Expression tab.
When an ArcGIS Arcade expression is mapping fields, subsequent changes to settings on the Fields tab override the expression. When this occurs, you must re-enter the expression.
Dive-in:
Use ArcGIS Arcade to embed logic that you can't otherwise accomplish with the standard controls—for example, to query the current value of a target field and copy the source attribute value only if it is greater than the target value.
ArcGIS Arcade is a scripting language that is used to evaluate embedded expressions, perform calculations, and return values used by a specific function—for example, in an attribute rule, a label, or a field calculation.
Field values maintain their data type. Inputs and output types are determined by the profile of the function for which the expression is evaluated. Multiple lines separated by a comma are allowed in the same window.
The following example copies the values in the source feature fields Elevation and Rotation to the target fields with the same name.
return { "Elevation" : $sourceFeature['Elevation'], "Rotation" : $sourceFeature['Rotation'] }
For field mapping variable names, see Profiles in the ArcGIS Arcade developers guide.
- Click OK to save your settings and close the dialog box.