How to insert a new st.form or st.button inside other st.form?

when I do an appliction in my job, I need to insert a new button to submit content to my database,
but streamlit app told me, new st.form and st.button can not insert into another st.form?

How can we make it like this?

with st.form("form1"):
      do something
      if st.button("click me to submit information"):
           submit code

1 Like

Hi @BeyondMyself

Not currently possible but I pretty sure it’s on the Devs radar! :wink:


1 Like