How to show date difference in record type based on condition

Hi,

I want to display the difference between today's date and created date in record type as an integer value. Further, I want to show the value in certain colors based on condition (like if the values is less than 3 then green color; if the values are in between 3 and 5 then yellow; and if the values are greater than 5 then red). This values will only come when the status is not completed.

Can somebody guide me?.

Many thank,

  Discussion posts and replies are publicly visible

Parents
  • 0
    Certified Senior Developer

    Hello ,

    You can make use of custom record fields for your use case. Have one custom record field where you find the date difference  and in the other you can have your color based on the 1st custom record field. Else have only one field where you get the date difference and then based on the values you can handle the colors in UI.

    Coming to the condition of status you can also handle that in UI or you can create your custom field in Sync-time evaluation using the expression.



Reply
  • 0
    Certified Senior Developer

    Hello ,

    You can make use of custom record fields for your use case. Have one custom record field where you find the date difference  and in the other you can have your color based on the 1st custom record field. Else have only one field where you get the date difference and then based on the values you can handle the colors in UI.

    Coming to the condition of status you can also handle that in UI or you can create your custom field in Sync-time evaluation using the expression.



Children
No Data