Last updated
Last updated
Standard have a discrete set of choices to select from that are defined at the time that the form is created. If the list of choices to present to your responders isn't known at the time the form is being built, or changes often, it's possible to load choices dynamically, from an API lookup or calculation.
Trying to look up an answer from an API? See .
See comparing different approaches to specifying choices for a visual walkthrough.
Dynamically-loaded choices, whether from an API or calculated locally, must adhere to the following format:
With a select question selected, go to the CHOICES tab, and select Load choices dynamically.
With External API selected, you will be able to configure an API lookup from which values will be retrieved.
If the API you are connecting to does not return results of the form described in the schema above, you can use a result mapping function to transform the result.
When calculated locally is enabled, you will be able to use Typescript to output the answers for responder.
For example, the following definition would create ten days of future dates as choices.
See for more on how to specify API lookups.
See for more information on writing calculated answers inline.
Dynamically loading select choices