Download File Only After Form Submission | Wix Code

How can I set up a form that downloads a file after filling up a valid email adress?

Thanks!

Hello Lucas,

Do you want the file to be downloaded on form submission or after filling up valid email address?

  1. If you want upon filling up valid email address you can use the onChange event listener to check if the email field is valid, if it is, you show the download button to download file.

Some things to help you out:
onChange,
valid ,
show

  1. If you want it on successful form submission, follow this tutorial on how to create a custom form and connect it to your database. However in the last step, instead of sending them to another page, send them to an anchor where your download button is and show it

Goodluck!
Majd