We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 8425
    • 159 Posts
    Hello,
    Let’s say I have a field in my eForm defined as follow:

    <input type="text" name="htmlTest" value="<h2> This is a Test</h2>"  />


    When I get the field value in the report form using [+htmlTest+], the html formatting is gone.

    What should I do to get the HTML back in the report form?

    Thank you



      • 28042 ☆ A M B ☆
      • 24,524 Posts
      No, you don’t put the header tags in the form field! Put the header tags in the report chunk template.
      <h2>[+htmlTest+]</h2>
        Studying MODX in the desert - http://sottwell.com
        Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
        Join the Slack Community - http://modx.org
        • 8425
        • 159 Posts
        Yes, that would be the proper to do it.
        However in my case, while I am still in the form I generate via JQuery a HTML string that I want to display in the report form. Is there a way to do that?
        Thank you
          • 8425
          • 159 Posts
          I’ve got it. I simply need to add
          &allowhtml=`1`