Gday there,
Im setting up a form to assess groundcover at multiple sites across multiple reserves.
Im currently using a javascript function to create unique lists for concatenated text but I cant figure out a way to Sum an area field for unique Area values (ie I only want to sum the area for a reserve once, no matter how many points are associated with the reserve)
Is there a way that I can add a flag/trigger within the repeat whether the assessment point is the first entry for a reserve, so that I can use this as a filter for building the unique lists and sum fields in the parent table? I feel this should be possible using js but no amount of googling has found an example so far.
Form Structure looks like:
Repeat
- Assessment Location (geopoint)
- pulldata() for reserve attributes (Name, Area, Id etc)
- Assessment fields
- ?? Flag for unique values??
Summary (Parent)
- List of Unique Reserve Names (done)
- Sum of Unique Reserve Area
- List of Unique Reserve ID's (done)
Many thanks.
mw