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

    How can I put this code in the form: onclick

    Asked by stepanovomp on October 25, 2014 at 12:59 PM
  • Profile Image

    Answered by stepanovomp on October 25, 2014 at 01:36 PM

    <a target="_blank" href="***" onclick="****">download</a>

  • Profile Image
    JotForm Support

    Answered by jonathan on October 25, 2014 at 08:15 PM


    You will need to use the full source code embed of your jotform to be able to add custom scripts function.

    User guide: https://www.jotform.com/help/104-How-to-get-the-Full-Source-Code-of-your-Form


    However, depending on what you wanted to achieve, you may not need to use custom OnClick event just to have download link.. you can just add a link instead or a redirect URL upon form submit.

    If you can provide us more details what it is you wanted to do, we will be able give further suggestion.