Conditional Formatting to hide a table cell or image
Overview
Conditional formatting can be used to hide a table cell or on an image based on a condition.
Adding conditional formatting to a table cell or image
- Select the item to hide
- Image: click on the image where the conditional formatting is to be added
- Table cell: click within in the cell then click on td (bottom of screen)
- Click the Conditional Formatting button
- Click New
- Enter a name for the condition
- Enter a condition using JavaScript (e.g. #sex==1) for which the item should NOT display
- Visible: Uncheck the Visible box indicating the item hides when the condition is true
- Click Ok when completed
Modifying / Viewing conditional formatting on a table cell or image
- Click on the item (td or image) with the conditional formatting
- Click the Conditional Formatting button
- Modify the conditional formatting as applicable
- Click Delete to remove the conditional formatting on the image