Forum Discussion

Chris Cundy's avatar
Chris Cundy
Brass Contributor
Feb 11, 2022

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

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.

 

 

  • I've solved this using the following code:

    "visibility": "=if([$SentToCx] == 'Failed','visible',if([$SentToCx] == 'No','visible','hidden')"
  • Chris Cundy's avatar
    Chris Cundy
    Brass Contributor
    I've solved this using the following code:

    "visibility": "=if([$SentToCx] == 'Failed','visible',if([$SentToCx] == 'No','visible','hidden')"
    • mherman284's avatar
      mherman284
      Copper Contributor

      Chris Cundy in the style property

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

Resources