Populate a json schema form from an API

I have a json schema form with a dropdown, whose fields I want to populate from an API. How would I trigger the call of the API and then how would I update those fields?

Hey @anobody (you’re a somebody, I hope)! A couple of points that might help you figure this out:

  1. You can trigger a query anywhere using query.trigger() (see docs here)
  2. You can reference query results anywhere using query.data

So in the JSON populating your JSON Schema Form, you could trigger a query that pulls the data you want from your API and then inserts the results as dropdown options. You’ll need to use curly braces if you’re referencing queries and data there, so {{ query.trigger() }} etc.