Hide field on entity view if not empty

Hello,

It would be great if it become possible to hide a field if it’s not empty. Currently, some fields allow to be hidden if they are empty :

image

and I would like to have the reverse option : Hide → When not empty.

Use case :

I create a gallery with a File field which contains the picture for the gallery view. If this field is empty, I want to show it on entity view so I can fill it. If it’s not empty, I want to hide it because I don’t need to care about it anymore.

1 Like

What about using multiple entity views? You can have an entity view that does not contain that field. Then when the field is filled, that entity view becomes the default (and the previous entity view can be hidden).

Thanks for the suggestion, it could be a good workaround. On the other hand, I will need to manage 2 views when I change something.

I always try to limit the display of irrelevant information to reduce visual clutter. In the case of the field I’m referring to, it’s a field that will be filled in once and rarely modified.

What I did for now is to create a new View for misc things, I think it’s the best solution for now. The field remains accessible and it is not part of the main view.