The Survey123 April 2022 update will include a handful of focused fixes and support for Bulgarian language. Our plan is to make this release available on April 21.
You can now access it through the Survey123 Early Adopter website. You will find instructions to load the beta version of the Survey123 website and web app in your browser and the Beta versions of Survey123 Connect and the field app. The Early Adopter forums are open for your feedback as well.
Survey123 Website and web app
Survey123 Connect and field app
Tech preview: pulldata("@layer")
Many of you have requested that we enable the use of custom JS functions in public surveys. For security reasons, that is unlikely going to happen. Having said this, we are identifying common uses of custom JS functions with the intent of bringing those as built-in functions. In this way, we make authoring easier on you and also allow execution in public surveys.
Overwhelmingly, the most common reason why we see you using custom JS functions is to query layers. This includes spatial queries such as point-in-polygon and attribute queries. We want to support this by extending the pulldata() function:
The output of the pulldata("@layer") operations is a JSON object representing a single feature. Using pulldata("@json") you can extract the attribute data you want and use that in calculations, constraints or expressions to control the visibility of form elements.
Here is a live example showing how you can use a point-in-polygon query to calculate a value.
Here is another live example showing how you can you use pulldata("@layer") to make sure the user adds a point within a particular polygon.
This new pulldata("@layer) function is at this moment only supported in the Survey123 web app. You will need to author your form in Survey123 Connect and test your work in the Survey123 web app. The preview in Survey123 Connect will ignore at this moment your pulldata("@layer") syntax. Although this feature is not officially supported yet, your pulldata("@layer") calls will work fine with the released version of the web app once your survey is published.
Learn more about pulldata("@layer") through the Early Adopter documentation. If you have feedback, please use the forum in the Early Adopter Program.
Subject to your feedback, we plan to add for support pulldata("@layer") in Connect and the field app in May/June October/November and officially document and support this feature in the July 2022 update before the end of 2022.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.