Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add visual cue when field visibility is hidden #1851

Open
chrismlusk opened this issue Apr 25, 2024 · 3 comments
Open

Add visual cue when field visibility is hidden #1851

chrismlusk opened this issue Apr 25, 2024 · 3 comments

Comments

@chrismlusk
Copy link

What are you trying to do?

In the form builder, I would like to be able to quickly see which fields are hidden.

What's your proposed solution?

I see that Hidden Fields are rendered with a disabled attribute and get a gray background, so this could also apply to fields where the "Visibility" option is set to hidden. But, to further differentiate what is visibility == hidden and what is a Hidden Field, how about adding the Hidden Field's icon to the fui-field-preview?

hidden

Additional context

No response

@engram-design
Copy link
Member

engram-design commented Apr 26, 2024

Agreed, I did actually think of this a few times but forgot to write it up as a FR.

Just to be clear, should we include the visual cue when any field is hidden for a number of reasons?

  • Visibility = hidden
  • Hidden field type
  • Conditionally hidden

As for the icon, I like the indicator, we'll just have to check it doesn't interfere with the icons on other field types.

@chrismlusk
Copy link
Author

To be clear, I'm suggesting the icon only for the hidden field type. If an email field has visibility hidden, I'd keep the email icon but add the gray background.

I hadn't considered conditionally hidden fields, but yes I think a visual cue makes sense for those too. As a developer who is accustomed to Craft's entry conditions, I could see using the same indicator — but Formie is more client facing than field layout settings, so it might not be the best option.

hidden

@engram-design
Copy link
Member

Thanks for the clarification!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants