How to Count Rows in a Table in the Builder

Have more questions? Submit a request

A neat trick that many GoCanvas users have implemented in their forms is counting rows in a Table. 

Count Rows in a Table

This can be applied to many different scenarios but some examples that we see often are counting passed or failed inspection items or assessing risk in the field by assigning hazard ratings that can be summarized for quick reference. Our customers have found many ways to benefit from this trick and perhaps your team could benefit from this automation.

  1. Navigate to the Forms page in your portal and either edit an existing form or start from scratch.
  2. Navigate to an existing table or add a new one.
  3. Add a Number field and give it a descriptive name, i.e. “First Floor Count” in our example.
  4. Select the gear icon to open Field Settings and add a Default Value of 1. Builder_Number Field_Default Value.png
  5. An optional step is to uncheck Mobile Visible under the More toggle to reduce confusion for users in the field. 
  6. On another screen, add a Calculation field and give it a descriptive name, i.e. “First Floor Summary” in our example.
  7. In Field Settings, toggle to Calculation and select the Table Calculation radio button and Sum will automatically be selected.
  8. Under "Sum up values in..." expand the Table drop down and select the table where the count field is located, i.e. "First Floor" in our example.
  9. Expand the Column drop down and select the field that will be summarized, i.e. "First Floor Count" in our example.Builder_Calculation Field_Table Calculation_Sum.png

Now you have a summary field that will count every row in the loop screen.

GoCanvas Tip

We also have a Webinar where we cover Counts & Summaries with a condition for an extra level of specificity in your count.

Articles in this section

Was this article helpful?
0 out of 0 found this helpful
Share

Comments

0 comments

Please sign in to leave a comment.