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

Brass Contributor



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.




2 Replies
best response confirmed by Chris Cundy (Brass Contributor)
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')"