Allow custom entity views/layouts to be completely hidden if they don't match rule

I have setup a rule for entity views so different fields get shown if it’s a child, vs if it’s a parent.

If it’s a child, I never want the parent view to even be shown as an option, and vice versa, however as soon as multiple views are created they all get displayed in a bar at the top of the screen and users can manually change them.

I would like the option to completely hide a view if it’s rules are not met and not allow anyone to manually select it. I image something like a “Hide View Unless Rule Is Met” toggle that would be displayed within the rule UI.

It’s coming

‘Hide Entity Views based on rules’

1 Like