Skip to main content
Known Participant
August 18, 2008
Question

cfform... and cftextarea

  • August 18, 2008
  • 1 reply
  • 1423 views
Hi all,

This tag isn't working with a cfform... any ideas?

<cftextarea name="comments" cols="100" rows="5" wrap="soft" class="classmainfont" id="comments" maxlength="1500" ></cftextarea>

The maxlength is specifically not working. Thanks.
    This topic has been closed for replies.

    1 reply

    Inspiring
    August 21, 2008
    Specify maxLength validation in the validate attribute and onBlur in the validateAt attribute as shown below.

    <cftextarea name="comments" cols="100" rows="5" wrap="soft" class="classmainfont" id="comments" maxLength="1500" validate = "maxLength" validateAt= "onBlur"></cftextarea>
    Known Participant
    August 27, 2008
    Is that coldfusion 7?
    Inspiring
    August 28, 2008
    From the online docs
    quote:

    The maximum length of text that can be entered. ColdFusion uses this attribute only if you specify maxlength in the validate attribute


    CFTEXTAREA online doc

    Ken