St.download_button in a form

Is it possible to have a st.download_button behave like a st.form_submit_button in a form?

It would have to be the other way around, I think: add download functionality to the form_submit_button.

Check out @snehankekre’s solution from before the download button existed on how to manually add download functionality to a button:

1 Like