Select to view content in your preferred language

Pre-populate using pulldata works on the survey 123 app but does not work on the web version of the app

270
3
04-04-2024 08:38 AM
TondaniMugwabana
New Contributor

I am trying to pre-populate my survey sub-categories for each repeat using the pulldata() function.  So I set it so that the sub-categories automatically change as I move through the repeats (see image below).

TondaniMugwabana_1-1712244347238.pngTondaniMugwabana_2-1712244393621.pngTondaniMugwabana_3-1712244429932.png

I attached a CSV file to my survey media folder, where the pulldata() function would add data from. I then used the following calculations within the repeat:

TondaniMugwabana_0-1712243889306.png

This calculation works very well on the survey 123 app (as seen above), and I can pre-populate sub-categories for each repeat. However, when I move through the repeats on the web app the sub-categories do not change, only one sub-category is selected for all the repeats (see image below). Is there something that I am missing in order to make this work on the web version of the app as well?

TondaniMugwabana_4-1712244624971.png

TondaniMugwabana_5-1712244657529.png

TondaniMugwabana_6-1712244687672.png

 

0 Kudos
3 Replies
DougBrowning
MVP Esteemed Contributor

The web form gets real picky about nesting anything in the pulldata.  This gets posted often so i think the fix is to remove the string(counter1) part in the pulldata and it should still work.  All calculates act like strings anyway.  If that does not work set the bind:type column to string.

0 Kudos
TondaniMugwabana
New Contributor

Thank you for the response Doug.

I tried both methods and it is still not working. Is there another function that I can use besides the pulldata() function to prepopulate answers in my repeats? 

0 Kudos
DougBrowning
MVP Esteemed Contributor

mm any spaces in the name of the csv at all?  It is also case sensitive.  I also wonder if it is running pulldata before the counter calculates.  Have you tried using position() instead?

0 Kudos