Submit button error

I’m trying to create a form with st.form, but when I create it and inside I create the submit button, I get the error that says I haven’t created this button, does anyone know why this happens?

Hi @Wiliam_Nova , as you have not posted any code, there’s no way one can pinpoint the error, but this is probably because the execution of your code passes the ‘with form’ statement, but does not reach the submit button line.

This could be due to:
a. The indentation of the submit button line (with relation to the ‘with form’ statement)
b. There is an error being generated by your statement / widgets that exist in your code between the ‘with form’ statement and the submit button statement

You will need to check on the above.