We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Support Find a Developer Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Support Find a Developer Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Field is hidden in CP but hasn't been set to hidden

News and General

energycell's avatar
energycell
17 posts
6 months ago
energycell's avatar energycell

EE v2.8.1

A field will not display in the control panel, it has a class of ‘entry-type-hidden’ set against it, however it has not been set as hidden.

I’ve tried creating a new tab and dragging the field into that from the Toolbar but even the new tab doesn’t appear for other users (I selected All users and published it).

The field only appears for me as Super Admin a when I have the Toolbar open, and even the new tab doesn’t appear unless I have the Toolbar open !

I need this field to be visible to other users.

       
Robin Sowell's avatar
Robin Sowell
13,142 posts
6 months ago
Robin Sowell's avatar Robin Sowell

It’s possible the layout is corrupted and that’s a really old version of EE. What I’d do in this situation, delete the layout. Then rebuild it, completely fresh.

If that still doesn’t work- check for javascript errors- it may be an issue with an add-on/fieldtype/extension.

But first, I’d just start over fresh building out the layout you want.

       
energycell's avatar
energycell
17 posts
6 months ago
energycell's avatar energycell

I ‘Reset’ the layout and recreated it, saved it, and the same field is still hidden!

In fact I’ve reset the layout again, and even in the default layout that field is not visible on any tab, unless the Toolbar is displayed.

       
Robin Sowell's avatar
Robin Sowell
13,142 posts
6 months ago
Robin Sowell's avatar Robin Sowell

If there is no layout at all- does the field show? And by hidden, you mean completely not showing, not closed, correct?

       
energycell's avatar
energycell
17 posts
6 months ago
energycell's avatar energycell

I pressed ‘Reset Layout’, so no there is no layout.

Unless the Toolbar is open the field has the class ‘entry-type-hidden’ added and is hidden.

Unfortunately only I as Super Admin can see the Open Toolbar option so I cant even ask content admins to use that as a solution, I will have to make any changes that are required to that field and there is a lot of content on this site.

thank you.

       
Robin Sowell's avatar
Robin Sowell
13,142 posts
6 months ago
Robin Sowell's avatar Robin Sowell

I did do a project search on entry-type-hidden in 2.11 to see what’s determining that style, but it didn’t come up.

There is a third party fieldtype called ‘entry-type’. Any chance you have that installed? I believe it conditionally hid a field based on the value of another field? I wonder if that might be what’s going on.

       
energycell's avatar
energycell
17 posts
6 months ago
energycell's avatar energycell

Yes!

thank you so much I had no idea about this field, I still have no idea why it’s being used tbh.

       
Robin Sowell's avatar
Robin Sowell
13,142 posts
6 months ago
Robin Sowell's avatar Robin Sowell

Whew! Because I was out of ideas.

I haven’t used the field myself, but my understanding is you’d use it to show/hide fields based on the value of another field. So like ‘Have you been to Florida?’ If you say ‘yes’ a field opens up to ask how you liked the beach or something.

I’m betting if you go to the field settings you’ll probably be able to spot what determines whether it shows.

       

Reply

Sign In To Reply

ExpressionEngine Home Features Contact
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.