The Edit (beta) widget provides users with feature and record editing capabilities. Use the Edit widget with another data-connected widget, such as Table, Feature Info, or Map, to give users the ability to add, delete, and update features in the source data. The geometry mode supports 2D and 3D editing, including move, scale, rotate geometries, and vertices editing. Choose which fields to display, organize the fields in collapsible groups with meaningful headings, and provide helpful instructions for editing each field.
Use this widget to support app design requirements such as the following:
- You want users to be able to update the attributes of selected features or records.
- You want users to be able to modify the shape of a feature in a map or scene from the Map widget.
This widget requires adding editable data. When you add an Edit widget, you must add at least one other widget, such as Table, List, Feature Info, or Map, that uses the same data source. Edit only supports selected features view, so a feature must be selected in the other widget for its data to appear in the Edit widget. To edit geometry, the widget must be connected to a Map widget.
The Edit widget includes the following settings:
- Choose an edit mode.
- Attribute only—Allows users to edit the attributes of the specified data sources (without a Map widget).
- Geometry and attribute—Allows users to edit the geometries and attributes for features in the data sources from the specified Map widget. You can click the Import all button to add all its editable layers or click New editable layer to choose specific layers.
- Layer configuration—Select the data source to be edited. For each layer, specify the following settings:
- Label—Type a name for the data source. This name appears in the widget to differentiate records from different sources.
- Capability—Specify the edit capabilities for the data source.
- Configure fields—Select which fields to display in the widget. (The first 50 fields are automatically selected; click Clear selection to deselect all.) In the subset of selected fields, specify which fields you want users to edit. Organize them by dragging to reorder or combining fields into logical groups. Provide descriptions for each field or group to give context or instructions.
- Snapping settings—For Geometry and attribute mode, allow users to turn on self-snapping and feature snapping tools. Self-snapping allows snapping to the feature being created, and shows smart guides such as 90 degrees and parallel. Feature snapping allows snapping to other features.
- General—Optionally provide users with a description of how to use the widget. For Attribute only mode, you can also customize the message that informs users when there is no valid selection.