The Zurich release has arrived! Interested in new features and functionalities? Click here for more

How to add dynamic styling to project status reports / doc templates?

Husam
Tera Expert

We want to add dynamic styling to the new Project Status reports where the color of text/table-cell changes based on its value. We want to achieve similar functionality to the legacy status reports where the Red/Yellow/Green statuses were accompanied by their respective colors.

2 REPLIES 2

kaushal_snow
Mega Sage

Hi @Husam ,

 

If you're using Document Templates for your Project Status documents, you'll need to use Document Template Scripts to inject styles dynamically based on values in the status report record. Navigate to Document template menu and add logic in the script to set styles based on status values dynamically...


Another option is, if you have Platform Analytics components, use single score visualizations with conditional coloring setting color rules based on values lets you achieve red/yellow/green indicators cleanly. Alternatively, in UI Builder, you can configure containers or blocks to show or hide different colored components based on values..

 

If you found my response helpful, please mark it as ‘Accept as Solution’ and ‘Helpful’. This helps other community members find the right answer more easily and supports the community..

 

 

Thanks and Regards,
Kaushal Kumar Jha - ServiceNow Consultant - Lets connect on Linkedin: https://www.linkedin.com/in/kaushalkrjha/

I'm using the sn_docs plugin that comes with the Project Workspace. That allows us to create Project Status Report templates for the workspace. It's a different plugin than Document Templates (sn_doc) which comes with HRSD.

 

I know it could be accomplished by creating a custom UI, but I'm looking specifically to get this to work using the Project Status Report display on the new Project Workspace.