Problems with REPEATS indexed-repeat() web form does not show information

336
1
05-28-2021 08:38 AM
CarlosArgueta_Muñoz
New Contributor

Hello.

I have 2 repeats into my form, the fist one ask for gender and age and I need to show age and gender on the second repeat to help users to populate the information.

Name of the fist repeat: repeat1.

Question for age: age.

Question for gender: gender.

I was able to do it ON SURVEY123 APP, with the formulas shown at the end, BUT IT DOES NOT WORK ON THE WEB APP VERSION: I got nothing from the calculation field

 indexed-repeat(${age}, ${repeat1}, position(..))

 indexed-repeat(${gender}, ${repeat1}, position(..))

 

Could you please help me and let me know if there is another way to do it.

Thank you in advance.

0 Kudos
1 Reply
CarlosArgueta_Muñoz
New Contributor

I solved it using

 

selected-at(${interviews}, position(..)-1)

interviews is a hidden field calculated by join(",",${age})

Juanjo Huiza

0 Kudos