Quantcast
Channel: Adobe Community : All Content - LiveCycle Designer
Viewing all articles
Browse latest Browse all 5571

Adding up values in a repeting row

$
0
0

I have a table that currently consists of 3 rows.

 

 

BagNumber of Items in Bag
A6
B12
Total

 

I have a button which allows the user to add more rows to the table, a maximum of 10 rows can be added.  I would like to be able to add up all the numbers, in the total cell.  How do I add up all the numbers for cells that do not currently exist?

 

For example:  If today I have 2 bags..Bag A has 6 items in it and Bag B has 12 items in it.  But tomorrow I have 7 bags, each with a different number of items.

 

What is the code I can write in my total box that will add up the number of items in a bag, for up to 10 bags?  What I don't want is all 10 rows static on the page, if the table only needs to consist of 2 rows, that is all that I would like to see, and I don't want a big gap (8 rows) between my values and the total box.

 

I can share my form if necessary.

 

Any help would be appreciated....greatly!


Viewing all articles
Browse latest Browse all 5571

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>