St.download_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: