Select to view content in your preferred language

Javascript Function to Extra Values from Multiple Rows

275
1
09-16-2022 01:48 PM
EmilyMalvini
Emerging Contributor

Is there a Javascript function that I can reference that returns multiple values as an array or list from a csv file by searching and returning all the values that match the input value? 

Thank you!

0 Kudos
1 Reply
LaurenceTait
Frequent Contributor

In Survey123 you can't work with local files in Javascript for security reasons. You can upload the CSV to your server and convert it to a JSON that you can use with Javascript.

Usually that's not necessary though. Generally you can use Survey123 to directly pull the relevant values from the CSV, and then pass that to your Javascript.

0 Kudos