Example 4

You want to highlight critical-priority requests to emphasize their urgency.

To accomplish this, do the following:

  1. Create an advanced "Apply on field change" rule with the dependency Priority!= "Critical".

    Rule logic: setFieldStyle("redBackground")

    Result Fields: Priority

    where the RequestRulesUserCSS.css file contains:

    .redBackground { background-color:red; font-weight:bold; color:white }

    This rule changes the style of the field whenever the value in the Priority field changes to "critical." However, because the styling is lost if the page is reloaded, you would create a similar additional rule to trigger on page load.

  2. Create an advanced "Apply on page load" rule with the dependency Priority != "Critical".

    Rule logic: setFieldStyle("redBackground")

    Result Fields: Priority

    where the RequestRulesUserCSS.css file contains:

    .redBackground { background-color:red; font-weight:bold; color:white }