Appsheet Group Columns show/hide as per selected items

Hi Appsheet User,

 

This sample project is about grouping columns. When you select a group from a list, only approved columns will show in form. But problem i am facing here is if data is empty still column name shows in detail form. Does anyone knows how to fix it? Please advise steps to follow. Screenshot below for your reference.

IMG_20230830_160956.jpg

โ€ƒ

IMG_20230830_161047.jpg

โ€ƒ

IMG-20230830-WA0007.jpg

โ€ƒ

Solved Solved
0 6 273
2 ACCEPTED SOLUTIONS

I have deployed below expression in your app and it works as per your expectation. 

if(and(
isnotblank([_this]),
CONTAINS(LOOKUP([_THISROW].[option],Setting,name,setting),"Column2")
),
in(context("viewtype"), list("detail","form") ),
if( and(
isblank([_this]),
CONTAINS(LOOKUP([_THISROW].[option],Setting,name,setting),"Column2")
), in(context("viewtype"), list("form")), false )

)

View solution in original post

6 REPLIES 6

use this ISNOTBLANK() in column show condition. Show condition can seen column properties.

Thanks for your reply. I tried this expression. But problem is column8ab shows hiden when i try to view the form. 

IMG-20230830-WA0008.jpg

โ€ƒ

IMG_20230830_160956.jpg

โ€ƒ

I have deployed below expression in your app and it works as per your expectation. 

if(and(
isnotblank([_this]),
CONTAINS(LOOKUP([_THISROW].[option],Setting,name,setting),"Column2")
),
in(context("viewtype"), list("detail","form") ),
if( and(
isblank([_this]),
CONTAINS(LOOKUP([_THISROW].[option],Setting,name,setting),"Column2")
), in(context("viewtype"), list("form")), false )

)

Thanks Jaichith, you really understood my requirements and result works. 

Welcome !... 

You have used AND , when 2 condition are satisfied or true. The column appears. Check for the values in column which has met the condition. Showif is very simple features. Maximum it won't fail. There may be problem with  expression or values in the column

Top Labels in this Space