Problem with XMP tag in Thank You page

  • Profile Image
    mingo3369
    Asked on June 08, 2012 at 11:11 AM

    I posted a question about using Jotform to create html code, in my case email signatures, by formatting a custom thank you page to display the code.  This works except that instead of displaying the raw code for users to copy and paste, it processes the html and shows the signature.

    I found an html tag <xmp> that I can insert before the <html tag that displays the code perfeclty when I open the file directly in chrome.

    However, when I use the same tag in my thank you page a <p> tag is added on every line rendering the code unusable.

    Anyone have any ideas on how I could use the <xmp> tag to generate the code on the thankyou page without getting all the <p> tags added too?

  • Profile Image
    abajan
    Answered on June 08, 2012 at 01:40 PM

    Part of the problem may be that the xmp tag has been deprecated since 1995. But I'll need to check if its alternatives (pre and code) are viable options in this instance.

  • Profile Image
    mingo3369
    Answered on June 12, 2012 at 11:40 AM

    Any progress from support on this?

  • Profile Image
    NeilVicente
    Answered on June 12, 2012 at 05:57 PM

    @mingo3369

    If your sole purpose for using the xmp tags is to just display HTML codes inside the Thank You page, here's a working solution:

    Convert your codes into their ASCII character equivalents using this free tool I found over the net:

    http://www.doncaprio.com/2011/07/online-html-to-ascii-converter.html

    Then, paste the ASCII-converted codes onto your Thank You page's html source.

    For example, this ASCII converted text:

    &lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=ISO-8859-1&quot;&gt;

    is displayed in the form's Thank You message as:

    <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">

     

    Hope you find this information useful.

  • Profile Image
    NeilVicente
    Answered on June 13, 2012 at 07:39 AM

    Update:

    Please disregard the post above. For some reason, I failed to do an extensive test before posting that solution. Apparently, the codes are displayed as is in the Thank You message editor but not in the actual Thank You page after submittting the form.

    We will try to exhaust all means to find a real working solution, but we cannot guarantee anything. Thank you very much for your understanding.

  • Profile Image
    abajan
    Answered on June 13, 2012 at 05:52 PM

    Eureka! If the paragraph tags insist on being there, let them! The trick is to place the first angled bracket of the HTML code between span tags.

    Submit this form and have a look at the thank you message. Clone the form to see how the message was coded. (I had entered actual angled brackets while editing the thank you message. It's the wizard that converted them to their ASCII equivalents. But that doesn't really matter.)