You can add in a for loop using javascript. This loop will go through each row and check the value of the field and then add that to an incrementing variable. Below is some example code.//rowIM is the instance Manager for the rowvar rowIM = xfa.resolveNode("Form.Page.Table.Row").instanceManager;var ...