The Drawing Shape Field represents one specific map shape inside a Gravity Form. It works with a Drawing Tools Field and its linked Map Field, can preload a shape from editor settings or raw GeoJSON, lets you control whether visitors may move or edit it, and saves the final shape with the entry.
Drawing Shape Field Overview
Use this field when the form needs an individually configured shape, such as a service radius, property boundary, delivery area, point of interest, planned route, or editable coverage zone. The shape appears on the map connected through the selected Drawing Tools Field. The field itself is hidden on the front end and stores the shape's structured geometry and properties.
Drawing Tools vs. Drawing Shape
The Drawing Tools Field provides the drawing interface and stores a collection of shapes. A Drawing Shape Field stores one distinct shape with its own source, type, appearance, and permissions. A form can use the Drawing Tools Field alone, or pair it with multiple Drawing Shape Fields when each predefined shape needs its own field and saved value.
Drawing Shape Field Settings
Saved Shape Data and Merge Tags
The field saves the final shape as a GeoJSON-style feature with its geometry, properties, and calculated measurements. The entry detail view displays the shape on a map together with available metrics.
Available merge-tag modifiers include:
mapfor the saved shape on a map.metricsfor the formatted measurement list.metrics_textfor plain-text measurements.map_metricsfor the map and metrics together; this is the default.json,serialized,serialized_pretty, ortextfor data-oriented output.
Append a modifier to the field ID, for example {Service Area:14.metrics_text}.
Basic Setup
- Add a Map Field and a Drawing Tools Field.
- Link the Drawing Tools Field to the map.
- Add a Drawing Shape Field and select that Drawing Tools Field.
- Choose Field Options or Raw JSON as the shape source.
- Configure the geometry, label, color, and editing permissions.
- Save the form and verify the initial shape, visitor controls, and submitted entry output.
Troubleshooting
- The shape does not appear: Confirm that the Drawing Shape Field points to a Drawing Tools Field and that the Drawing Tools Field points to a visible Map Field.
- The initial shape is in the wrong place: Check the latitude/longitude order and use decimal coordinates.
- Raw JSON does not load: Confirm that it is a valid GeoJSON Feature rather than a complete Drawing Tools export collection.
- The shape cannot be changed: Enable the required resizing, editing, or dragging permission. Also enable the shape panel when visitors need its label, color, or delete controls.
