Skip to content

[6.x] Fix form fields named "title" breaking the form's title in the CP - #16061

Open
jasonbaciulis wants to merge 1 commit into
statamic:6.xfrom
jasonbaciulis:fix-form-title-clobbered-by-field
Open

jasonbaciulis wants to merge 1 commit into
statamic:6.xfrom
jasonbaciulis:fix-form-title-clobbered-by-field

Conversation

@jasonbaciulis

@jasonbaciulis jasonbaciulis commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

If a form has a choice field (e.g. Dropdown, Multiple Choice, Yes/No, Checkboxes) with the handle title, the form's title breaks on the CP pages that receive the whole form object (Builder, Logic, Connect). Instead of "Contact Us", the page gets {value: "Contact Us", label: "Contact Us", key: "Contact Us"}.

image

This happens because augmentation looks up each key's fieldtype in the item's blueprint. For a form, the blueprint holds its submission fields, not the form's own properties. So the form's title was run through the title field's fieldtype.

@jasonbaciulis
jasonbaciulis force-pushed the fix-form-title-clobbered-by-field branch from 3b13cae to 997b82d Compare November 26, 2026 06:37
@jasonbaciulis
jasonbaciulis marked this pull request as ready for review November 26, 2026 06:43

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant