Forum Discussion
Yarrah
Mar 19, 2020Brass Contributor
SharePoint Online list button: multiple visibility conditions
Hey All, I am trying to toggle the visibility of a button in my SharePoint list with two columns, but I'm not sure if my conditions or syntax are correct. The logic i'm trying to accomplish i...
- Mar 21, 2020
Yarrah as Sudharsan K said, the && is what you need. The following will work:
"visibility": "=if(([$column1] == 'Approved') && ([$column2] != 'Approved'),'visible','hidden')"Rob
Los Gallardos
Microsoft Power Automate Community Super User
Sudharsan K
Steel Contributor
Hi,
Make sure you use 'and' or '&&' for defining the two conditions, it should be one condition checking for two values. In your case, you have given 2 conditions which shouldn't be.
Hope it helps, please like it or mark it as a solution if it resolves ur clarification or issue
-Sudharsan K...
Make sure you use 'and' or '&&' for defining the two conditions, it should be one condition checking for two values. In your case, you have given 2 conditions which shouldn't be.
Hope it helps, please like it or mark it as a solution if it resolves ur clarification or issue
-Sudharsan K...
Yarrah
Mar 23, 2020Brass Contributor
Hey Sudharsan K
Thank you for your response. I eventually figured it out and even threw in and extra condition with an '| |' and it worked!
Thank for your help!