Submit button to update form and download a file

  • stryker11
    Asked on February 23, 2016 at 12:38 AM

    Hi there

     

    I'm trying out Jotform and I came across an issue which needs to be resolved.  I want my users to fillup a form with their detials before downloading a file.  The details captured in the form need to be forwarded to me or update a backend table and after the users fill out the form, when the submit button is clicked, the file should download automatically.  

     

    Can this be performed?

    Thanks

  • Welvin Support Team Lead
    Replied on February 23, 2016 at 7:54 AM

    Yes, this is possible. You can use the Download URL of the file as your Thank you URL of the form.

    http://www.jotform.com/help/38-Redirecting-Users-to-a-Different-Page

    This method will allow you to get the form submission first before the submitter gets the file.

    Or, instead of redirecting users to your download URL, you can also add an autoresponder email and add the download link to the body of the email.

    Here's how to create an autoresponder email: http://www.jotform.com/help/26-Creating-a-Form-Autoresponder

    So, after the submission, your submitter will get the autoresponder email containing the download link.

     

    To receive the submission through email, you have to make sure that you have configured a notifier (http://www.jotform.com/help/25-Setting-Up-Email-Notifications).

    If you wish to pass the submission to your MySQL Database, you can do it using Send Post Method (http://www.jotform.com/help/126-How-to-send-Submissions-to-Your-MySQL-Database-Using-PHP).