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

    Can I change the target value of the anchor tag?

    Asked by luchtmeijer on August 10, 2016 at 07:37 AM

    If I put a link in a form, the target is always "_blank", or none. Is it possible to add "-top" to the choices?

    target choices top anchor tag edit code source code
  • Profile Image
    JotForm Support

    Answered by Jan on August 10, 2016 at 10:22 AM

    Yes, it is possible to change the target property of the anchor link. You need to open the source code of the Text field for that. First, select the Text field and then click the "Edit HTML" button.

    After that, click the "Source Code <>" icon. Edit the anchor tag and add the target attribute name.

    Hope that helps. Thank you.

  • Profile Image

    Answered by luchtmeijer on August 10, 2016 at 11:46 AM
    I've done that, but jotform keeps changing it to "_blank" after saving the
    form.
    Op 10 aug. 2016 4:22 p.m. schreef "JotForm" :
    ...
  • Profile Image
    JotForm Support

    Answered by Jan on August 10, 2016 at 12:28 PM

    You are right, the target value keeps on reverting back to "_blank" even after changing it to "_top". Let me look into this problem further. I will contact you as soon as I have a solution. Thank you.

  • Profile Image
    JotForm Support

    Answered by Jan on August 10, 2016 at 03:22 PM

    Sorry for the inconvenience. Unfortunately, I discovered that this is a normal function of the HTML editor. The attributes other than _blank and _self are being stripped automatically after saving the form. 

    If you are using Iframe to embed this form in your website, please try using the normal embed code instead. In this way, the target page will be opened on the same window.

    Related thread: https://www.jotform.com/answers/359899

    Thank you for understanding.