Some PDIs are currently unavailable, and PDI actions are paused. View the latest updates here. Read More

Condition based field styling

Craig Nicholls
Tera Contributor

Hello Guys,

 

I wonder if you could assist me with something, I have recently created a field on my incident table that contains a date which is auto populated by a business rule when a customer visible comment is added to a the worklog, the field is labelled "u_last_customer_update"

 

I would like to expand the functionality of the field and add a condition based colour scheme to the background of the field.

 

Please could you someone tell me if this is possible and if so how I would go about achieving this. What i would like to happen is the background field will change colour based on the time since the current recorded time saved in the field, I would like the following conditions to be applied:

 

within 24 hours - Green

24-48 hours - Yellow

greater than 48 hours - Red

 

thanks in advance

Craig

 

6 REPLIES 6

Please use the Value field to include your Script Include like below

javascript: new ScriptIncludeName().functionName() == 'true'

amitgrewal
Tera Contributor

Well we are trying to run some conditional field styles based on the status choices and some random project dates to show colors if empty to show color dots/indicators on the list view. Say a project On Hold, if planned start or planned end date is empty then show the color on that field but a In Progress project should check the above dates as well as the Estimated Start and Estimated End Date for example.


But tried everything not able to reach any success! 

Anyone could advice if this has been done by them PLEASE!