Configuring Module Header Stats
Module header stats allow you to display the summed value of number fields as a header on a Status Board. They also allow you to display the total figure for the number of rows entered.
🔑 ACCESS LEVEL: Account Owner
⚠️ ATTENTION: If you do not already have a numbers field, you will need to add one first.
- Go to the Admin Area
- Expand Templates
- Select Status Boards
- Click the Edit icon on the status board you wish to edit
- Scroll to the bottom of the page and click + Advanced Options
- Here you will see Module header stats
- Click Add
- In this article's example to display the summed value for both Shelter Capacity and Shelter Occupancy on the header you must obtain the field IDs for both of the number fields
- Click the ⋮ more options menu and copy the Field ID, you can also click on the double paper icon to copy
- The Field ID for Shelter Capacity is shelter_capacity and the field name for Shelter Occupancy is current_occupancy
- To sum the total number for Shelter Capacity, enter the following in Template:
- Shelter Capacity: {{items | map:'data.shelter_capacity_Fxd9LCYq' | add}}
- Click Add
- To sum the total number for Shelter Occupancy, enter the following in Template:
- Shelter Occupancy: {{items | map:'data.shelter_occupancy_fQS9eJ91' | add}}
- Click Add
- Click Save
Display the Total Figure
You can also display the total figure for the number of rows entered in a status board and it will appear as a header on your status board.
- Enter the following code in Template:
- Total Casualties {{items.length}}
- Where Total Casualties is the name of the header that you want to appear on your status board
- Another example could be Total # Infected if you had an Infections board. The code for this would be:
- Total # Infected [[items.length]]
- Click Save