feat: HEADING field type for registration forms — replace section property with structural field
Replace the per-field `section` text property with a dedicated HEADING field type that organizers add as a separate block for visual grouping. Also fixes duplicate heading bug on portal radio fields, replaces cramped VBtnToggle with VSelect for field width, and adds grouped field type dropdown with structure/input categories. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -111,7 +111,7 @@ final class RegistrationFormFieldService
|
||||
DB::transaction(function () use ($person, $values, $fields): void {
|
||||
foreach ($values as $slug => $rawValue) {
|
||||
$field = $fields->get($slug);
|
||||
if ($field === null) {
|
||||
if ($field === null || $field->field_type->isStructural()) {
|
||||
continue;
|
||||
}
|
||||
|
||||
@@ -176,7 +176,6 @@ final class RegistrationFormFieldService
|
||||
'is_portal_visible' => $sourceField->is_portal_visible,
|
||||
'is_admin_only' => $sourceField->is_admin_only,
|
||||
'is_filterable' => $sourceField->is_filterable,
|
||||
'section' => $sourceField->section,
|
||||
'help_text' => $sourceField->help_text,
|
||||
'sort_order' => ++$maxOrder,
|
||||
'display_width' => $sourceField->display_width,
|
||||
|
||||
Reference in New Issue
Block a user