What would you like to know more about?

View Rules Fields

Note: View Rules should always contain mutually exclusive conditions (for example, green if Member OR blue if Faithful Non-Member). If a field meets the condition of multiple, overlapping View Rules, then multiple Record Facts display. To avoid this, create View Rules that do not overlap.

Example of a blank View Rule record

View
The View that you're assigning rules to. To style Record Facts, the View is a Facts View, but any View can have View Rules.
Note: The View must have a field list for View Rules to work.
Field Name
The specific column the View Rule applies to. If the column has an alias, refer to the alias.
Condition
The conditions to apply this formatting. This must be expressed in JavaScript using {value} token and is evaluated as "true" (formatting applied) or "false" (formatting not applied).
Text Color
A hex code or color name for text color. If blank, the text is white.
Background Color
A hex code or color name for background color. If blank, the background is gray. Want to match new background colors to the provided Record Facts? Check out our handy chart.
Image Name
The name of the Font Awesome icon you want to display, using this format: "fa-[image name]".
Note: Be sure to use the version 5 Font Awesome library.

Font Awesome website showing a drop-down menu where the version is selected

Show Percentage
When set to Yes, this value styles as a percentage. If you also define the background color, the percentage displays with a fill bar.
Note: The percentage value itself calculates in the View. See Record Facts for more information.
Show Label
When set to Yes, the column name displays before the column value. If the column is an alias, the alias displays as the label.
Format As
Select the applicable format type for Record Facts you want to make clickable:
  • Color: If selected, your View displays a color box for the selected hex code. You can see an example of what this looks like on System Lookups > Chart Colors.
  • Email: If selected, your email provider launches when you click email addresses from desktop or mobile devices.
  • Phone: If selected, your phone application launches when you click phone numbers from desktop or mobile devices.
  • Blank: Leave this field blank if you don't want to format your Record Facts as one of the other options.