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

    Create download link in notification email

    Asked by johnwheeler on November 12, 2013 at 05:56 PM


    I need to create a download link in the notification email, I have read the guides and understand how to create the link but the problem is that the name of the file to be downloaded is unique to each user.

    The file is created using a hidden unique field on the form for example: cp12-12345 and then  adding the pdf ext using php.

    <a target="_blank" href="http://www.mysite.co.uk/cp12-12345.pdf" rel="nofollow noopener">Your File</a>

    The field in question is {certificatenumber} and I do not know how to or if it is even possible to create this string in the link for example:    <a target="_blank" href="http://www.mysite.co.uk/{certificatenumber}.pdf">Your File</a>


  • Profile Image
    JotForm Support

    Answered by jonathan on November 12, 2013 at 07:45 PM


    If I understand correctly, the download link you want to add to the e-mail is an external link. Meaning, it is not a download link generated by the upload field of JotForm. (correct me if I got it wrong also)

    Because if you use the upload field, it will be easier because there is a download link available for upload file within the e-mail notification.

    If you are not using the upload field, may I ask if there is a way for you to use it instead? 

    It will be difficult to create the dynamic download link in the email notification without the upload field present. If you noticed the link tool in the e-mail template is static. You can only put a link once.

    Another method is to create a link that will redirect the browser to an external web page., it require another step and page, but you can do control dynamically which file can be downloaded on the external page.. i.e. when the web page opesn, it should contain only a dowload link to file that the user can click on.

    Hope this help. Do inform us if you have more to say on this.





  • Profile Image

    Answered by johnwheeler on November 13, 2013 at 03:15 AM


    Thankyou for taking the time to reply but I do not see how the upload link can help me.

    Upon submitting the form the output is sent to my server which inserts the data into Mysql and then I use php to create a report and produce the file name.

    I can of course create a link using php or javascript but do not see how I can get the link inserted into the notification email. Which is where I want it not on an external page.

    I want to charge the user for the report using Paypal and only want them to receive the link through the email notification once the transaction is complete.



  • Profile Image
    JotForm Support

    Answered by Welvin on November 13, 2013 at 06:24 AM

    Hi John,

    May we know the process on how the unique download link will be given to each submitter? Is it after they select an option from your form? If yes, you can simply create a separate email notification for each file download link then use our conditional logic to send it to the submitter after selection. You can use this guide: Send Form Notification Base on a Field Selection.

    Of course, the submitter won't be able to get the notification if they don't pay after redirected to the Paypal payment page.


  • Profile Image

    Answered by johnwheeler on November 13, 2013 at 12:07 PM


    I do not yet have a method to give the link to each user, That is the whole problem.

    I send the output to my server and create the file not a link.

    I need a way to create a link, maybe a hidden field on the form which I then hoped I could add to the email notification.

    But I have yet to find a way to achieve what I require.

  • Profile Image
    JotForm Support

    Answered by EltonCris on November 13, 2013 at 03:25 PM


    Thanks for your reply.

    Since you cannot insert anything on Jotform's email notification without having to defined it on your form notification, it is not possible to do that. Unless you defined the link on your email notification with your domain name as constant and a variable from your form field and then write the file name extension. Just like on your example:

    <a target="_blank" href="http://www.mysite.co.uk/{certificatenumber}.pdf" rel="nofollow">Your File</a>

    If {certificatenumber} is a unqiue ID field, this will be replaced with an increasing uniqueID everytime the form is submitted. Add Custom Unique IDs to your Form Submissions. After that, since you're able to capture {certificatenumber} data on your end, you can generate a file URL out of this with the same path of the link setup from your email notification?

    This is I guess the best way to achieve this. I am thinking of using Webhook to fire up  a custom email notification but since you are requiring them to complete the Paypal payment, it may not be possible since Webhook is triggered right after the form is submitted.


    Another possible solution would be asking users email on your form then create a custom script that sends an email to the provided email address after form submission? This seems a little bit complicated which I'm not sure about at all. :)


  • Profile Image

    Answered by johnwheeler on November 13, 2013 at 07:03 PM


    Such a simple task in not easy within Jotform. I will generate the download link using php and then send an email with all the details and the link from my webserver.


  • Profile Image
    JotForm Support

    Answered by EltonCris on November 13, 2013 at 08:28 PM


    We are truly sorry if we are not able to provide you a solution. Unfortunately the function you want is just far beyond Jotform's capability and not doable in the form builder.

    Thank you and glad to hear you've come up with a solution.