I have a sample piece of code:
with st.form("my_form"):
st.write("Inside the form")
slider_val = st.slider("Form slider")
checkbox_val = st.checkbox("Form checkbox")
# Every form must have a submit button.
submitted = st.form_submit_button("Submit")
if submitted:
st.write("slider", slider_val, "checkbox", checkbox_val)
I would ideally like that the ‘if submitted’ conditional will hold ALL submissions, instead of just the latest submission and overwriting the older submission. The purpose of this is so that I can display the history of submissions line by line, versus just the previous submission.
Thank you!