Is it possible to have something like a multi-step form, like a wizard?
The use case that I am developing this for is something like: (I use 3 different streamlit apps for this now)
I generate a story based on certain parameters.
I click submit, and it generates a storyline.
I can edit that storyline, and when I click submit, I am presented with another form, specifically to use that storyline to create a booklet.
That booklet generation has other parameters that you can set.
When iām happy with that, I click ācreate bookā and I am presented with, yet another form to work on the final parametersā¦
All of these have to work independently of each other, so changing something doesnāt rerun the entire interface, only when I click submit (like a st.form) But, how would one add the functionality to show and hide form controls?
Does anyone know, am I perhaps asking a bit too much of Streamlit in this case?
Yes, this use case is doable with Streamlit, mainly through session state. Youāll probably want to store the values of all the inputs in session state and have a variable in session state that indicates which of the steps have been completed by the user, so that when the app reruns after the user hits the āSubmitā button on one of the forms, the next form can be displayed.