- Are you running your app locally or is it deployed? locally
if a user want to rerun a form they submitted a while back, what’s the best way to support that?
if a user want to rerun a form they submitted a while back, what’s the best way to support that?
Hi @Tony_Zhang,
Thanks for sharing your question! To enable users to access data they entered into a form in the past, you’d need to save the form input to a database or data source, and then you’d need to make a call to that database when the user wants to access their past form submissions (check out our guides on connecting Streamlit to data sources here and our doc on st.connection
here.
thanks Caroline! do you know where I can find an example where st.form and st.connection is used together!
I don’t have an example on hand of using st.connection
with st.form
, but there’s an example in this thread of using st.form
and writing the form input to a database that you might find helpful – you could definitely sub in st.connection
in this example
perfect thank you!
These cookies are necessary for the website to function and cannot be switched off. They are usually only set in response to actions made by you which amount to a request for services, such as setting your privacy preferences, logging in or filling in forms.
These cookies allow us to count visits and traffic sources so we can measure and improve the performance of our site. They help us understand how visitors move around the site and which pages are most frequently visited.
These cookies are used to record your choices and settings, maintain your preferences over time and recognize you when you return to our website. These cookies help us to personalize our content for you and remember your preferences.
These cookies may be deployed to our site by our advertising partners to build a profile of your interest and provide you with content that is relevant to you, including showing you relevant ads on other websites.