How can I display a condition value in a human-readable way?

mikehall
ServiceNow Employee
ServiceNow Employee

Is there a way to convert a condition value into a more readable condition label?  Two examples...

 

Convert: state!=8

To: State != Canceled or State is not Canceled

Convert: opened_atONToday@javascript:gs.beginningOfToday()@javascript:gs.endOfToday()

To: Opened on Today

 

This could be similar to how conditions are displayed at the top of forms. 

 

In a business rule, I am setting a message that includes the Conditions field from a PA Indicator record (and PA Indicator Source record), but want to display in the most human readable format I can.

 

screenshots take from Indicator Source record sys_id=b5cf2c23d7030100b96d45a3ce6103cc

1 ACCEPTED SOLUTION

mikehall
ServiceNow Employee
ServiceNow Employee
gr.conditions.getDisplayValue()
 
Done!

View solution in original post

1 REPLY 1

mikehall
ServiceNow Employee
ServiceNow Employee
gr.conditions.getDisplayValue()
 
Done!