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

    Form to create html code??

    Asked by mingo3369 on June 05, 2012 at 03:11 PM

    I am creating a form to create html code based on a few fields of user input.  Everything works fine expect that the email or thank you page I use to create and deliver the code displays the html output, not the raw code.  How could I display the raw code?

    By the way, using <textarea adds <p> to every line and renders the code unusable.

  • Profile Image
    JotForm Support

    Answered by jonathan on June 05, 2012 at 05:49 PM


    To do this, you will have to use the source code embed of the form. Is this what you did?

    Will you be able to share to us the URL of the website where you have embedded the form?

    Will await for your response.


  • Profile Image

    Answered by mingo3369 on June 05, 2012 at 07:26 PM

    I don't think I explained myself plainly.  I am trying use a form that would generate the html code for a company email signature.  That way I can enforce brand standards around the signature would look.  I want to have the person input his name, title, and phone then have the code for the html signture presented to him via a custom thank you page.  I can get this all to work except when the thank you page is generated, rather than displaying the raw code or text (that they would copy and paste into their outlook or gmail settings) it displays the processed html.  

    How could I have this displayed as text (raw code) instead of html?

  • Profile Image

    Answered by jeanettebmz on June 05, 2012 at 07:42 PM

    In that case you would need to use HTML entities.

    HTML entities are a way to encode special HTML characters such as < and > into literal characters that cannot be interpreted by browsers as HTML code. Refer to the most common HTML entities conversion table below:

    ‘&’ (ampersand) becomes ‘&amp; ‘"’ (double quote) becomes ‘&quot; ”’ (single quote) becomes ‘&#039; ‘<’ (less than) becomes ‘&lt; ‘>’ (greater than) becomes ‘&gt;

    Therefore, to display HTML code as they are and show them to your Thank You page, write the special characters such as < and > in HTML entities. For example,

    FOR  :  <h2>Beautiful town</h2>

    Has to be written:

    &lt;h2&gt;Beautiful town&lt;/h2&gt;

    Hope this helps



  • Profile Image

    Answered by jeanettebmz on June 05, 2012 at 07:44 PM
  • Profile Image

    Answered by ecbudesign on December 27, 2012 at 07:01 AM

    jeanettebmz, your suggestion is part of the solution, however is still does not work.  For example, if I have a form with two fields:

    Title: [_______]

    Intro Text: [_______]

    I can mark up the thank message as follows:




    However, once submitted, the Thank You message renders the HTML so there is a big, bold title and a normal block of formatted paragraph text instead of displaying it as a code block of raw HTML markup than can be copied and pasted.

  • Profile Image

    Answered by ecbudesign on December 27, 2012 at 07:07 AM

    Update: I also tried the suggestion above, wrapped in <pre><code>…</code></pre> without success:



  • Profile Image

    Answered by ecbudesign on December 27, 2012 at 07:27 AM

    Update II: Although the Thank You message does not display the raw HTML cocde, the email that gets sent does even though the Thank You message and Email message are identical in mark up.

  • Profile Image
    JotForm Support

    Answered by Welvin on December 27, 2012 at 07:50 AM


    Can you please share with us your form URL so we could check your settings? 


    How about using only the field variables of your form? I.e: {editlink}, {email2} ?



  • Profile Image

    Answered by rs  on July 28, 2016 at 03:35 AM