I have created a custom renderer to populate dependent select lists. I am using an Autocomplete control and am attempting to populate it from data returned from an API. I am using useEffect() to load the data from the remote API but have run into an issue into how to populate the options of the control. The options prop is read only and if I create a local ‘options/setOptions’ state to manage the state and then use handleChange, the JSONForms data is populated correctly, but the form control still contains the original selected value. What is the correct way to expose the data to JSONForms and associated controls?
1 Like
Please disregard this post. I had a mistake in my underlying code and using options/setOptions worked as expected.
1 Like
Hello rick can you share with me your code to see how you are updating the props inside your custom renderer .