Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

cfform... and cftextarea

New Here ,
Aug 18, 2008 Aug 18, 2008
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.
1.3K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Aug 21, 2008 Aug 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>
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Aug 27, 2008 Aug 27, 2008
Is that coldfusion 7?
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
Aug 27, 2008 Aug 27, 2008
LATEST
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
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources