Setting Colors with Status Expressions

Manage how your Status Board warnings are displayed based on the status field selection. For example you have building damage assessment that has changed to minor or severe damage.

Item status expressions allow you to specify what color a row within a status board should be based on what status is selected from a drop down field.

🔑 ACCESS LEVEL: Account Owner

ℹī¸ NOTE: You must set colors with status expressions first within the Admin Area on web application.  

⚠ī¸ ATTENTION: If you do not already have a status field, you will need to add one first.

To do this:

  1. Go to the Admin Area
  2. Expand Templates
  3. Select Status Boards
  4. Click the Edit icon on the status board you wish to edit
  5. In this example the options for statuses are 'No Damage', 'Minor Damage', 'Severe Damage' and 'Destroyed'
  6. Scroll to the bottom of the page and click + Advanced Options
  7. Here you will see Item status expressions;
    1. Success = Green
    2. Warning = Amber
    3. Danger = Red 

  8. To set the colors based on the status selection, you must use the field ID/name. I.e. the field name for No Damage is no_damage, the field name for Destroyed is destroyed and so on
  9. The field ID for the Status field in this example is status which you can find by clicking on the More Options [⋮] menu on the field in the template in the admin area
  10. If 'No Damage' is selected I want the status board item to be green, enter the following in Success:
    1. status==='no_damage'
  11. If 'Minor Damage' is selected, I want the item to be amber, enter the following in Warning:
    1. status==='minor_damage'
  12. If 'Severe Damage' OR 'Destroyed' is selected, I want the item to be red, enter the following in Danger:
    1. status==='severe_damage' || status==='destroyed' 

  13. Click Save

ℹī¸ NOTE: You can also use numbers in your expressions. See the example below for how to add colors based on the number of residents in a particular shelter.

Example input: 

Example output: 

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.

Still need help? Contact Us Contact Us