How can I dynamically update my Select options based on an API
I've got a textInput where a user can enter their zipcode/postcode and a button that does a lookup via an API.
I'd like to find a way to make the options in the Select update. Is it possible?
I'd like to find a way to make the options in the Select update. Is it possible?
Solution
Why two separate fields? I’m doing something similar but with just one select (using the getSearchResultsUsing method on the select). Works great. When a result is selected I also set some other fields.