I am loading a dropdown from an API with objects that have an id and a name. The Option Caption is the object’s name.
I would like for the user to be able to pass a parameter in the URL to specify the name property so the user would not have to select an item in the dropdown manually (in the case of a frequent default selection they like).
How can I tell the dropdown to select a specific item based on this URL parameter after the dropdown has loaded its list from the API after the page loads?
Yes, I knew something like that would work. However, the API that fills the dropdown has more than just the value of each item there is also an id that gets used by subsequent API calls. So if the users chooses a different item from the dropdown the id property of the item is used to populate other elements of the page.