HTML tags present in Long Text field

  • oliviaz123
    Asked on July 21, 2021 at 7:01 AM

    How do we take text with paragraphs & dot points from a long text box within the jotform and display it without the text having any predisposed html?

    For example - we submitted a long text box with multiple lines of text (at each div) and it displays this (screenshot below). We have also tried copy and paste but have had no luck.

    Any advice would be much appreciated :)

    Many thanks! 


    Jotform Thread 3233690 Screenshot
  • Michal_S Jotform Support
    Replied on July 21, 2021 at 11:35 AM

    Hello!

    I was unable to find the form that your screenshot is from - could you please specify the form in question?

    Is your issue that plain text (without these tags) input into the Long Text field shows up with the HTML tags, as depicted in the screenshot?

    If so, where are you seeing this result? Is it in the Notification Email, the Submissions Table, or the PDF Document?

    Or, are you trying to do the reverse and paste HTML code into the Long Text field?

    Awaiting your response,

    Thank you!

  • oliviaz123
    Replied on July 22, 2021 at 9:27 PM

    Hi Michal,

    Yes, it is the latter! The html tags appear on our website no matter what the text is when we put it into the long text field of the form.

    Essentially we are trying to take the long text form input, and put it directly on a site.


    Any help would be much appreciated!


    Best regards

  • Billy JotForm Support
    Replied on July 23, 2021 at 6:13 AM

    Hi there!

    Can you please send us the information asked below so we can further investigate?

    1. The URL of the form where the long text is captured from
    2. Where is the text being put to? A CRM? A database perhaps? If you could be more specific, that'd be great.
    3. Is this only happening on long text fields or happening to any fields?

    We'll be waiting for your response.

  • oliviaz123
    Replied on July 23, 2021 at 10:31 PM

    The text is being stored in a DB, specifically mongodb, (Please note, that this only occurs for this particular long text field and for no

    others):


    While writing text, we press enter to create a new paragraph

    Eg.

    1627093947 60fb7bbbc724b Job descp Screenshot 10


    Response in DB:

    Hello this is the form]r


    <div>trying to see if copy and paste workst;/div>


    <div>We would like to use dot points</div>


    It then displays the text like this on our website.


    Is there any way we could resolve this?

  • Billy JotForm Support
    Replied on July 24, 2021 at 6:13 AM

    Please turn off this option in the Long Text field's settings under General

    1627121586 60fbe7b2cfcee  Screenshot 10

    We'll be waiting for your response.

  • oliviaz123
    Replied on July 24, 2021 at 8:26 PM

    Thank you Billy! It works from our end now. You're a legend!