Skip to content

[6.x] Forms 2: Add "Always hide" option to field logic dropdown#14859

Merged
duncanmcclean merged 10 commits into
forms-2from
forms-2-field-hidden
Jun 22, 2026
Merged

[6.x] Forms 2: Add "Always hide" option to field logic dropdown#14859
duncanmcclean merged 10 commits into
forms-2from
forms-2-field-hidden

Conversation

@duncanmcclean

Copy link
Copy Markdown
Member

Currently, you can hide a field by toggling the "eye" next to the delete button:

CleanShot 2026-06-22 at 15 11 30

However, navigating to the field inspector's "Logic" tab will say "Always show":

CleanShot 2026-06-22 at 15 11 54

Behind the scenes, hiding a field via the toggle is separate to hiding a field with conditions. The toggle saves hidden: true, conditions save under if/unless keys. Obviously, we know that, but not all of our users will know that, and nor should they need to.

This PR adds an "Always hide" option to the logic dropdown. It's automatically selected when a field is hidden, and changing it to "Always show", "Show when" or "Hide when" updates the hidden toggle accordingly (and vice versa).

CleanShot.2026-06-22.at.15.22.30.mp4

This PR also updates the Logic page to show hidden fields and persist the hidden state when saving.

@duncanmcclean duncanmcclean merged commit 57f9f5c into forms-2 Jun 22, 2026
18 checks passed
@duncanmcclean duncanmcclean deleted the forms-2-field-hidden branch June 22, 2026 14:42
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