What is JotForm?
JotForm is a free online form builder which helps you create online forms without writing a single line of code. No sign-up required.

At JotForm, we want to make sure that you’re getting the online form builder help that you need. Our friendly customer support team is available 24/7.

We believe that if one user has a question, there could be more users who may have the same question. This is why many of our support forum threads are public and available to be searched and viewed. If you’d like help immediately, feel free to search for a similar question, or submit your question or concern.


  • Profile Image

    Submit button to update form and download a file

    Asked by stryker11 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

    download a file
  • Profile Image
    JotForm Support

    Answered by Welvin on February 23, 2016 at 07: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).