Skip to main content
July 19, 2010
Answered

Submit button in cftextarea value

  • July 19, 2010
  • 1 reply
  • 566 views

Hello~

I have a cftextarea whose value is being populated from a database. The problem is, some of the values contain form code, including submit buttons. Most of the form displays correctly inside the richtext cftextarea, but the Submit button is always displayed outside of the text box, rather than as part of the textbox value. I have html set to yes, and I am using the richtext option. Any ideas? Thanks!

    This topic has been closed for replies.
    Correct answer ilssac

    Esacpabe the HTML with either htmlCodeFormat() or htmlEditFormat().  One ads a set of ,<pre></pre> tags, but I can never keep them straight without looking at the documentation.

    Otherwise the Browser is going to see the HTML tags and parse them in order they find them.  Browsers are not strict about tags being closed before other tags opening so you can't put unescaped tag code inside something like another <textarea></textarea> HTML tag block.

    1 reply

    Participant
    July 23, 2010

    I'm having the same problem.

    ilssac
    ilssacCorrect answer
    Inspiring
    July 23, 2010

    Esacpabe the HTML with either htmlCodeFormat() or htmlEditFormat().  One ads a set of ,<pre></pre> tags, but I can never keep them straight without looking at the documentation.

    Otherwise the Browser is going to see the HTML tags and parse them in order they find them.  Browsers are not strict about tags being closed before other tags opening so you can't put unescaped tag code inside something like another <textarea></textarea> HTML tag block.