SOLVED

[Resolved] Flow button visibility based on choice values of another column

Brass Contributor

Hello,

 

I'm trying to show a flow button in one of my columns only if the choice value of another column is equal to either Failed OR No. If the choice value is equal to Yes or In progress then the button shouldn't display.

 

"visibility": "=if(([$SentToCx] == 'Failed') || ([$SentToCx]! = 'No'),'visible','hidden')"

 

 I've tried using this code however it's not working as expected.

 

ChrisCundy_0-1644582123698.png

 

2 Replies
best response confirmed by Chris Cundy (Brass Contributor)
Solution
I've solved this using the following code:

"visibility": "=if([$SentToCx] == 'Failed','visible',if([$SentToCx] == 'No','visible','hidden')"

@Chris Cundy in the style property

"style": {
"border": "none",
"background-color": "transparent",
"cursor": "pointer",
"visibility": "=if([$Title] == '5','hidden','visible')"
},
1 best response

Accepted Solutions
best response confirmed by Chris Cundy (Brass Contributor)
Solution
I've solved this using the following code:

"visibility": "=if([$SentToCx] == 'Failed','visible',if([$SentToCx] == 'No','visible','hidden')"

View solution in original post