Hide filter empty fields for image/video

For image / video i want the option to hide the field if the value in data source is empty.
The video-player and image looks broken to the end user if the field is empty…

Hey @DidrikSa Are you referring to hiding the “-” signs when a field value comes as empty?

Hi, no.
If a field is of type video, and the value of the mapped filed is empty, an empty video player is shown.
Printscreen:

Same as for when a field is of type image, and the field is not an image (for instance a video) it shows a broken image.

I want functionality for hiding the field if value is empty/null.

Hey @DidrikSa makes sense!
Actually this behavior is not the same when you use one of our latest blocks such as here in my example I am using the list details page with 3 column view (old) Vs the item details block (new)
both have the video field but the new one does not show anything when the value is null, so I would recommend trying to use the new one for a better layout and overall experience.


Ok. This helps somewhat.
Still I mean it should be read from MIME-type. In my db i have a field for “media” that contains either image or video, so looking for image/jpeg
or video/mp4, video/mpeg would make it easy to support many more types of files…