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.