Is it possible to load radio button options dynamically (on the front end) via jQuery for a form? I have found documentation on how to dynamically create radio button options from the PHP side (using the pre_render hook), but I am needing to populate options once the form has already loaded.
In short, I collect info in part of the form, make an AJAX API call to an external service with that collected info, and then need to populate a radio button group (or I could change to a select dropdown, no difference) with the returned data from the AJAX call.
Does anyone have any advice, suggestions, or links to documentation/similar code? Any help is greatly appreciated.