Field styles allow you to declare individual CSS styles for a field in a list or
Role required: personalize_styles or admin
The CSS lets you change the following attributes of a field.
- Change the color.
- Change the font attributes (bold, italics, underline).
- Change the padding and alignment of text.
You can define field styles for tables and database views that are in the same scope
as the field style and for other tables that have at least one field in the same
scope as the field style. Field styles defined for a table do not apply to database
views that include the table. Create separate field styles for database views.
Navigate to the list of styles for the field in one of the following
- Right-click the field label on the form and select Configure
- Navigate to
, and locate the field to apply a style (admin only).
Click New, or click the style to modify.
Complete the form.
||Table that contains the field.
Note: The list shows
only tables and database views that meet the scope
protections for field styles.
||The field to which the style applies.
||The exact value or script-based-condition required to
apply the style.
Note: The value only affects
list field styles. To apply field styles on both
lists and forms, leave this field
||The CSS style to apply.
For example, to make the
background of the Incident Category fields red in
record lists, with a 24-px font size and white text
color, enter the following code.
You can use a script-based-condition with the syntax
Value field to determine whether the system
should apply a style to a field in the list. If the evaluated script returns
true, the system applies the style to the list item.
The script has access to the current
which enables you to build conditions based on the field values of the
current record. For example, this script checks for overdue items based on a
Note: In this example,
current.u_datefield refers to the name
of a custom date field.
The system only supports one
field. If you want to enter multiple
example, instead of this invalid
Consolidate the conditions into one statement such
To add alternative text for a style, configure the form to add the alternative text field.
For styles like the VIP style icon, you can add alternative text so that
screen readers can differentiate between the style and the
Click Submit or Update.