Populating dropdown with API connector

I can see the example of how to pre-fill information using the API connector and have got this working but how would I use the API connector to populate the options of a dropdown. For example, dropdown would be ‘Resident Name’ and I want to make the dropdown options any resident names in the API JSON response.

Hey there, as seen in the API connector, you can only map a field to a specific part of the JSON response. To work more on multiple values from the response, it would be best to access its data via JavaScript. This reference shows how to call an API and save its response in JS.

And then you can take the options section in this example to save a specific part of the JSON data to a dropdown field.