Del
Discussion posts and replies are publicly visible
You can use the `and` function, https://docs.appian.com/suite/help/19.1/fnc_logical_and.html
If you want to hide a cardLayout when all values are false, you can wrap each value in a fn!not()
a!localvariables( local!columnOne: false, local!columnTwo: false, local!columnThree: false, a!cardLayout( contents: {}, showWhen: and( not(local!columnOne), not(local!columnTwo), not(local!columnThree) ) ) )
Can you paste the SAIL you currently have?
{ a!localVariables( local!applicationConfig: rule!PRO_HR_QE_GetApplicationConfig( queryFilters: a!queryFilter( field: "isActive", operator: "=", value: true ) ), a!cardLayout( style: cons!PRO_HR_COLOUR_NAVIGATION_BACKGROUND, showBorder: false, showWhen: ri!showWhen, contents: { a!columnsLayout( columns: { a!columnLayout( contents: { a!richTextDisplayField( labelPosition: "COLLAPSED", value: { a!richTextIcon( icon: "support", altText: "life buoy", caption: "Support information", link: a!safeLink( uri: index(local!applicationConfig,"supportLink",null) ) ), " ", a!richTextItem( text: " Support", link: a!safeLink( uri: index(local!applicationConfig,"supportLink",null) ) ) }, showWhen: index(local!applicationConfig,"enableSupportLink",null) ) } ), a!columnLayout( contents: { a!sideBySideLayout( alignVertical: "MIDDLE", items: { a!sideBySideItem( item: a!richTextDisplayField( labelPosition: "COLLAPSED", align: "RIGHT", value: { a!richTextIcon( icon: "phone", altText: "phone" ), " ", a!richTextItem( text: index(local!applicationConfig,"supportPhoneNumber",null) ) }, showWhen: index(local!applicationConfig,"enableSupportPhoneNumber",null) ) ), a!sideBySideItem( width: "MINIMIZE", item: a!richTextDisplayField( labelPosition: "COLLAPSED", align: "RIGHT", value: { a!richTextIcon( icon: "envelope", altText: "email" ), " ", a!richTextItem( text: index(local!applicationConfig,"supportEmail",null), link: a!safeLink( uri: "mailto:" & index(local!applicationConfig,"supportEmail",null) ) ) }, showWhen: index(local!applicationConfig,"enableSupportEmail",null) ) ) } ) } ) } ) } ) ) }
Hi arung,so your issue is more a style question than a showwhen issue.
a!cardLayout( style: if( and( not(toboolean(index(local!applicationConfig,"enableSupportLink",null))), not(toboolean(index(local!applicationConfig,"enableSupportPhoneNumber",null))), not(toboolean(index(local!applicationConfig,"enableSupportEmail",null))) ), "STANDARD", cons!PRO_HR_COLOUR_NAVIGATION_BACKGROUND ), showBorder: false, showWhen: ri!showWhen, contents: { a!columnsLayout( columns: { a!columnLayout( contents: { a!richTextDisplayField( labelPosition: "COLLAPSED", value: { a!richTextIcon( icon: "support", altText: "life buoy", caption: "Support information", link: a!safeLink( uri: index(local!applicationConfig,"supportLink",null) ) ), " ", a!richTextItem( text: " Support", link: a!safeLink( uri: index(local!applicationConfig,"supportLink",null) ) ) }, showWhen: index(local!applicationConfig,"enableSupportLink",null) ) } ), a!columnLayout( contents: { a!sideBySideLayout( alignVertical: "MIDDLE", items: { a!sideBySideItem( item: a!richTextDisplayField( labelPosition: "COLLAPSED", align: "RIGHT", value: { a!richTextIcon( icon: "phone", altText: "phone" ), " ", a!richTextItem( text: index(local!applicationConfig,"supportPhoneNumber",null) ) }, showWhen: index(local!applicationConfig,"enableSupportPhoneNumber",null) ) ), a!sideBySideItem( width: "MINIMIZE", item: a!richTextDisplayField( labelPosition: "COLLAPSED", align: "RIGHT", value: { a!richTextIcon( icon: "envelope", altText: "email" ), " ", a!richTextItem( text: index(local!applicationConfig,"supportEmail",null), link: a!safeLink( uri: "mailto:" & index(local!applicationConfig,"supportEmail",null) ) ) }, showWhen: index(local!applicationConfig,"enableSupportEmail",null) ) ) ) } ) } ) } ) } )
FYI, you preferably shouldn't delete (or overwrite) your posts once your question has been answered, as people in the future might find your post when searching and find the answers they're looking for without having to make a whole new post.