Hello,
I am trying to develop a form for surveying natural water sources. Some of these sites have water plumbed into a tank. Some have water plumbed to multiple tanks. The tank designs can vary significantly per site.
I have a repeated group for users to pick a tank and then fill out all of the fields for it, like design, capacity, how full it is, etc. They can repeat the group for how ever many tanks are at the site.
If the user selects a different design for each of the tanks, all of the sum functions outside of the repeating group that rely on what is in the group work (i.e, a sum of the total capacity of the site, how much water is actually there, and a percentage based on these two fields). However, if the user selects the same tank design for multiple tanks at the same site, then the sum functions and subsequent calculations that rely on them break. Having the tank design repeat is crucial as it is more common for like designs to be at the same site than different designs.
This is my first bout at using Survey123 so I am naive to a lot of what is going on, but this is the first roadblock I can't seem to get past with just googling.
The repeating section starts at line 98. What I cannot understand is that the ${TotalCapacity} (line 146) calculation works either way, but the ${TotalAvailable} (line 156) does not, even though it is practically the same calculation.
Thanks!