SOLVED

SharePoint list conditional formatting, hide button

Copper Contributor

Hi All,

 

I am trying to look if a conditional formatting for a button on a SharePoint list is available. The current SharePoint list that I am working on has a column that contains button wherein this button when clicked will update the row and put an entry on another field. The button should only appear if the entry on the field for that row is null. I want the button hidden whenever the field entry is not null.  

 

Thank you!

 

2 Replies
best response confirmed by francis2324 (Copper Contributor)
Solution

@francis2324 in the style section of your JSON -formatted button, set the visibility as shown below:

 

"visibility": "=if([$PublishedToTeams] == 'Yes','hidden','visible')"
 
visibility2.png

 

Rob
Los Gallardos
Intranet, SharePoint and Power Platform Manager (and classic 1967 Morris Traveller driver)

This is what I need. Thank you!

1 best response

Accepted Solutions
best response confirmed by francis2324 (Copper Contributor)
Solution

@francis2324 in the style section of your JSON -formatted button, set the visibility as shown below:

 

"visibility": "=if([$PublishedToTeams] == 'Yes','hidden','visible')"
 
visibility2.png

 

Rob
Los Gallardos
Intranet, SharePoint and Power Platform Manager (and classic 1967 Morris Traveller driver)

View solution in original post