Share this page

# 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 }

https://admhelp.microfocus.com PPM 8942
Tips to improve your search results... OpenText™ Project and Portfolio Management Help Center PPM Help 26.2-26.3 All View Local Help Center View Online Help Center Version: