How to use pulldata function with JScript in 123 Survey ?

424
1
03-16-2021 04:21 PM
explocarto
New Contributor III

Hello,

I am new to JScript. I would like to use the pulldata () function with JScript. However I can not find a concrete example on the forum.

I'm looking to query a field on a hosted service.
Based on an answer given to one of the form fields, I would like to be able to query a hosted web service and return an associated value from another field of this hosted service.

Form:
Answer: 15

Hosted service:
id: 15
equipment: Swimming pool

How to return this value of the equipment field?

Could someone write me the syntax of a JScript file?

Thank you for your help

0 Kudos
1 Reply
IsmaelChivite
Esri Notable Contributor

This blog is now a bit out of date, but it includes an example illustrating how you can query a feature layer: https://community.esri.com/t5/arcgis-survey123-blog/extending-survey123-smart-forms-with-custom-js-f...