Announcements
The Google Cloud Community will be in read-only from July 16 - July 22 as we migrate to a new platform; refer to this community post for more details.

Hide card view image section if no image set

Hi,

In card view, when no image set, the image section still there but blank.
3X_4_8_481b40566765d804c1740bb0e9e33bc4f4154c9b.png

I do not want to show this useless image section if no image is set, is this possible?

Solved Solved
2 6 667
  • UX
1 ACCEPTED SOLUTION

Usually in the show if expression you can use an expressionโ€ฆ Something likeโ€ฆ Iโ€™m on my phone, so youโ€™ll need to fill in the gaps on this expressionโ€ฆ

NOT(
AND(
CONTEXT(ViewType)=โ€œCardโ€,
ISBLANK([_THIS])
)
)

View solution in original post

6 REPLIES 6

Usually in the show if expression you can use an expressionโ€ฆ Something likeโ€ฆ Iโ€™m on my phone, so youโ€™ll need to fill in the gaps on this expressionโ€ฆ

NOT(
AND(
CONTEXT(ViewType)=โ€œCardโ€,
ISBLANK([_THIS])
)
)

Isnโ€™t this going to remove the entire card? Or maybe Iโ€™m just not getting what the โ€œshow ifโ€ means?

If you only want to hide the image on the cards where there is no value in the image column, how is that done?

Thanks

Thereโ€™s a Show? setting in the column configuration.

In the app editor, go to Data >> Columns, to the table with the image to conditionally hide, to the column that contains the image. Click on the pencil icon at the left end of the columnโ€™s row to open the columnโ€™s configuration. Find the Show? setting and click on the flask to enable conditional display (also known as Show_If๐Ÿ˜ž

3X_4_a_4a4b24bac5d8fa72a6ffe820a89aaf2ed5e9362e.png

3X_3_c_3c31e6da5564b4f67efc1105c70ecc29d85de619.png

See also:

Oh thanks - completely missed that pencil on the column row. It works!

Iโ€™m glad that did the trick!

how to apply this in desktop view?

Top Labels in this Space