This module allows you to reorder the sub-elements within Webform composite fields by simply dragging and dropping them in the configuration screen. Once enabled, it automatically adds sorting capabilities to all composite element types, preserving the order you set.
The Webform Composite Sortable module adds draggable sorting (weights) for Webform composite sub-elements in the configuration UI.
This module extends all Webform composite elements to support manual reordering of their sub-elements through a drag-and-drop interface in the element configuration form.
Features
- Automatic integration with all composite element types (Address, Contact, Name, etc.)
- Weight-based sorting that persists across form edits
- No additional configuration required
- Clean, minimal code implementation
Post-Installation
No additional configuration is needed. Once enabled, the module automatically adds a "Weight" column with drag handles to all composite element configuration tables in the Webform UI.
To reorder sub-elements:
- Navigate to a webform and add or edit a composite element
- Go to the element's settings
- In the composite element configuration table, drag rows to reorder sub-elements
- Save the element configuration
The order will be preserved and reflected in the form display.
Additional Requirements
This module requires the following module:
- Webform (https://www.drupal.org/project/webform)