Oracle CRM On Demand JavaScript API Developer's Guide > Overview of the JavaScript API >

Color Coding of Fields and Rows


You can use methods of the JavaScript API to highlight fields and rows in different colors in the Oracle CRM On Demand UI when particular conditions are met. You can change the colors of the following:

  • In Detail pages, the background color and text color of field labels and field values.
  • In Edit pages, the background color and text color of field labels and the background color of field values.
  • In List pages (and related item lists), the background color and text color of field values. Also, the background color for entire rows.

As an example, on account records the Account Name field might be used for highlighting key accounts. On the Account Detail page the color of the Account Name field could change, for example, to green, when the sales representative changes the value of the Account Revenues field to a threshold value. On the Account List page, rows for key account records would be highlighted in green.

For a code sample, see Code Sample for Color Coding of Fields and Rows.

The color coding that is set using the JavaScript API takes precedence over system or theme colors. For example, if you set a required field to another text color, the color coding overrides the red text color for the required field.

Oracle CRM On Demand JavaScript API Developer's Guide, Release 38 Copyright © 2019, Oracle and/or its affiliates. All rights reserved. Legal Notices.