Conditional Formatting in a Repeater Cell
Overview
Conditional formatting in a repeater cell can be used to display a different background color and/or different font color based on a condition.Â
Â
Adding conditional formatting in a repeater cell
- Click in the cell where the conditional formatting is to be added
- Click td in the bottom row of he page where the HTML table tags are displayed
- Click the Conditional Formatting buttonÂ
- Click New
- Enter a name for the condition
- Enter a condition using JavaScript (e.g. item2.#systolic >= 140)
- Visible
- If the checkbox is marked and the condition is true, the Background and Font Color specified will render
- If the checkbox is not marked and the condition is false, the cell does not display
- Â Background:Â The hex color code for the background color if the condition is true
Enter a hex color code for the conditional background color
- Or: Click on the small rectangular box to select a conditional background color
- Click on the narrow colored rectangular column to select various ranges of that colorÂ
- Click within the square box to select the specific color, the hex color code is updated in the Background box
- Font:Â The hex color code for the conditional font
- Enter a hex color code for the conditional font color
- Or: Click on the small rectangular box to select a conditional font color
- Click on the narrow colored rectangular column to select various ranges of that colorÂ
- Click within the square box to select the specific color, the hex color code is updated in the Font box
- Click Ok when completedÂ
Â
Adding Multiple conditions to a repeater cellÂ
- Follow steps 1-3Â above
- The existing conditions for that cell will display
- Click the dropdown arrow to see the existing conditions
- Click New to add a new condition
- Follow steps 5-10 above
Â
Modifying / Viewing conditional formatting in a repeater cell
- Click in a table cell with the conditional formatting
- Click the Conditional Formatting buttonÂ
- If multiple conditions exist, select the condition to modify by selecting the name in the Condition drop down list
- Modify the conditional formatting as applicable
- Click Delete to remove the conditional formatting on the table cell
- Click New to create new conditional formatting on the table cell