Select to view content in your preferred language

Survey123 validate number of repeats

769
2
11-25-2019 01:37 AM
OfraAinemer
Esri Contributor

Hi,

I have Survey based on ArcGIS server feature service.

There is also a relationship class, for example - several different people 

In the survey I have one question about "how many people" and then begin / end repeat to collect the people's data.

I need to validate the the number of people in the question is equal to the number of repeats.

I've added a "note" (without a name, only label) to calculate the number of repeats - works fine.

Now I try write a constraint on this note, to compare the note result and the question above.

The problem is that the constraint doesn't work all the time and for all the numbers.

Sometimes the numbers are equal but there is an error, sometimes the opposite, and sometimes it works fine.

Do anyone has solved this problem in another way, or can help me build it correctly?

Thanks in advance

Ofra 

0 Kudos
2 Replies
DougBrowning
MVP Esteemed Contributor

How about you do not ask them you just calculate it using Count().  

You could also use repeat_count set to the number of people.  Then make each of the repeats required.

0 Kudos
OfraAinemer
Esri Contributor

Thank you Doug.

I applied your idea and it works.

Thanks again

Ofra

0 Kudos