Is there a clean & simple way to place all the attribute values in a pulldata() method in XLS Forms?

02-04-2021 12:00 PM
Occasional Contributor

For example, in the javascript survey example, there is a pulldata() for apples, oranges, and fruit that gets totaled in the myFunction.js

It looks like this:

pulldata("@javascript", "functions.js", "smartsum", ${apples}, ${oranges}, ${pears})


Is there a way to simply send all attribute values, or the record over to a function in MyFunction.js?

In C# or Java, this could be completed by passing in a model of the record, but i don't know how to do it using Survey123 and Javascript.


If its complicated, i will simply list all the attributes. Not the biggest deal. I'm just looking for the cleanest solution.


Thanks in advance.


0 Kudos
1 Reply
Esri Notable Contributor

Hi. Unfortunately, you need to pass the attributes on by one.

0 Kudos