Can we not use callbacks using the st.form_submit_button?

I think so because no matter what I submit, it always shows the default option, implying that the callback function is not called, because that was the only way to edit the session state variable. Is this correct?

Hi @Ishan_Mistry,

Thanks for posting!

You can use callbacks with st.form_submit_button. Check out the doc here. Not quite sure what you mean by the default option – can you share a code snippet to demonstrate?

Caroline :balloon: