Forum Discussion
LaMakiry
Jan 25, 2023Tin Contributor
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 ...
- Jan 26, 2023
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.
Don Kirkham
Jan 26, 2023MVP
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.
MrNoCode
Sep 11, 2023Brass Contributor
Thank youDon 🙂