Select to view content in your preferred language

Survey 123 many Repeats with the same field names but don't allow for calculations to work because multiple uses of the same field.

170
1
Jump to solution
02-24-2025 10:47 AM
AudraPayne1
Occasional Contributor

Please see screenshot below, many repeats with the same fields not allowing for calculations to work. In the screenshot I used a JavaScript also tried an easier function with just the calculation but because repetitive use of the same fields the calculation it doesn't know which one to pick. 

I know I can just make new fields but this is a client's so we can't just edit the dataset like that, because it would be inconsistent with their dataset from last year

AudraPayne1_0-1740422698980.png

AudraPayne1_1-1740422783111.png

AudraPayne1_2-1740422807555.png

 

0 Kudos
1 Solution

Accepted Solutions
DavidSolari
MVP Regular Contributor

Survey123 will always fall apart if you have duplicate field names, even if those fields are ultimately mapped to disjoint tables. I like to add a small prefix to the fields in repeats (like "e_" for the equipment repeat) to avoid collisions I think that should work in your case as well.

View solution in original post

1 Reply
DavidSolari
MVP Regular Contributor

Survey123 will always fall apart if you have duplicate field names, even if those fields are ultimately mapped to disjoint tables. I like to add a small prefix to the fields in repeats (like "e_" for the equipment repeat) to avoid collisions I think that should work in your case as well.