Skip to content

[6.x] Forms 2: Field numbering#14909

Merged
duncanmcclean merged 10 commits into
forms-2from
forms-2-field-numbering
Jul 2, 2026
Merged

[6.x] Forms 2: Field numbering#14909
duncanmcclean merged 10 commits into
forms-2from
forms-2-field-numbering

Conversation

@duncanmcclean

@duncanmcclean duncanmcclean commented Jul 1, 2026

Copy link
Copy Markdown
Member

This pull request allows you to see numbers next to form fields in the Control Panel. Disabled by default, but can be toggled at the top of the Form Builder, Logic and Submission pages.

CleanShot 2026-07-02 at 14 59 36

Originally part of #14811, but I split it out to make things easier to review.

- the Builder and Logic components are now responsible for generating the field numbers, rather than the composable.
- the FieldNumber component now injects the fieldNumbers and checks the "show" state itself. saving us from needing to pass it in.
- the composable is now only responsible for the toggle state.
it does blink slightly when you toggle it because it has to remount the PublishContainer component.

to avoid the blink, we'd need to swap PublishForm for using PublishContainer directly, then add slots in PublishFields and  PublishField.

it's not a major issue so going to keep it simple for now w/ the blink. if someone complains we can change it later.
@duncanmcclean duncanmcclean marked this pull request as ready for review July 2, 2026 13:57
@duncanmcclean duncanmcclean merged commit 0ac798d into forms-2 Jul 2, 2026
22 checks passed
@duncanmcclean duncanmcclean deleted the forms-2-field-numbering branch July 2, 2026 14:04
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