Forum Discussion

francis2324's avatar
francis2324
Copper Contributor
Oct 17, 2022

SharePoint list conditional formatting, hide button

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!

 

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

     

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

     

    Rob
    Los Gallardos
    Intranet, SharePoint and Power Platform Manager (and classic 1967 Morris Traveller driver)
  • RobElliott's avatar
    RobElliott
    Silver Contributor

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

     

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

     

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

Resources