[6.x] Forms 2: Add "Always hide" option to field logic dropdown#14859
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Currently, you can hide a field by toggling the "eye" next to the delete button:
However, navigating to the field inspector's "Logic" tab will say "Always show":
Behind the scenes, hiding a field via the toggle is separate to hiding a field with conditions. The toggle saves
hidden: true, conditions save underif/unlesskeys. 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
hiddentoggle 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.