I’m having some difficulty with creating dynamic forms after the latest Streamlit update to 1.46.0. I was previously relying on the value of components within the form to make other components appear. To do this in previous versions, I had to use a workaround where I created st.empty() components within the form itself and updated them below the form definition to replace the st.empty() placeholders with the appropriate components based on component values. This was working up until the latest release and I am not sure how to remedy the issue.
I was also using these placeholders to define on_change callbacks for some form components after replacing the placeholders, but this workaround is also no longer functional and results in an error that only the submit button for a form is allowed to have a callback function. Any guidance would be appreciated. I have been browsing the community posts for a few days and have not found any threads that have remedied this issue.