Hide repeats in Survey Report?

489
1
07-30-2019 02:24 PM
TNGStewardship
New Contributor III

Hello,

I am looking for a way to hide repeats, with no data collected or that are not triggered, in a report generated from Survey123 data.

Presently I am using ${if activity=="incident"} and then ${/} to hide data that is in groups but I can't seem to hide conditional data that is in the form of a repeat this way. The template still shows up, blank, but still there with the header nonetheless and thus, as this is a long survey, generates a lot of wasted pages.

Would the solution be to turn the repeat into a group and then have the repeat within the group? (If that makes any sense?)

Any hints would be greatly appreciated!

Emily

0 Kudos
1 Reply
JamesTedrick
Esri Esteemed Contributor

Hi Emily,

It sounds like you want this comparison check:

${if (repeat1 | getValue:"count")>0}

Note that repeat | getValue:"count" will return the number of related records attached to the form