Forum Discussion

LaMakiry's avatar
LaMakiry
Copper Contributor
Jan 25, 2023
Solved

Conditional Formatting for List Header

First post here so forgive me if I am not detailed enough.   I am creating an approval process and I am using https://github.com/rdorrani/SharePoint/blob/master/TravelRequest/headerformatting.json ...
  • Don Kirkham's avatar
    Jan 26, 2023

    LaMakiry 

    It is normally more helpful to include your advanced formatting json so people can fully test thier answers before submitting a solution. That said, I think the comparison you are needing is as follows: 

     

    =if([$Name.email]!='', 'true', 'false')

     

    The place I would put that comparison is on the "display" property in the "style" attribute of the icon, which would look something like this:

     

    "style": {
        "display": "=if([$Name.email] != '', 'block', 'none')"
    }

     

     I hope this helps.

     

    Good Luck!

    Don


    If my answer helps solve or resolve your issue, please consider clicking  Mark as Best Response & Like. This will help others to find the correct solution easily. It also closes the item. If the post was useful in other ways, please consider giving it a Like.

Resources