Bug reports Found a bug? Post it here please.
Version 5.x > Bug reports > [5.5.3789] Textarea field doesn't apply maximum text length View modes: 
User avatar
Member
Member
michiel - 7/21/2010 7:31:45 AM
   
[5.5.3789] Textarea field doesn't apply maximum text length
When defining a custom attribute that uses a textarea, the value for maximum text length is not applied to the textarea.

User avatar
Kentico Developer
Kentico Developer
Kentico_IvanaT - 7/23/2010 9:59:31 AM
   
RE:[5.5.3789] Textarea field doesn't apply maximum text length
Hi,

I created texarea attribute in CMS Desk - Tools - BizForms, set max length to 3 and I received error message when I tried to submit longer message.

Could you describe when maximum text length was not applied to textarea attribute? I would like to to reproduce it. Thank you.

Best Regards,

Ivana Tomanickova

User avatar
Member
Member
michiel - 7/23/2010 2:18:20 PM
   
RE:[5.5.3789] Textarea field doesn't apply maximum text length
Sorry, I meant in the Form tab of a custom document.

Thanks for looking!

User avatar
Kentico Developer
Kentico Developer
Kentico_IvanaT - 7/26/2010 5:23:38 AM
   
RE:[5.5.3789] Textarea field doesn't apply maximum text length
Hi

Unfortunately, I cannot reproduce this issue on my machine.

I created my custom document type in Site Management – Development – Document Types with textarea attribute. Max length of this attribute was set to 3. Then I created new document of this custom type in CMS Desk. In Form tab I tried to save text of length 6, but I received error message “The maximum length of the text is 3 characters, but you have entered 6 characters.”

Could you please sent me exact steps to follow to reproduce described behavior? Thank you in advance.

Best Regards,
Ivana Tomanickova

User avatar
Member
Member
michiel - 7/26/2010 11:31:05 AM
   
RE:[5.5.3789] Textarea field doesn't apply maximum text length
Please compare the following settings: Attribute size and Maximum text length. The second setting should be applied to the textarea, but it's not. Maybe this setting should result in a maxlength attribute on the textarea? If not, then it's confusing, because the first setting already controls the maximum size of the text entered.

I hope I explained it well. Otherwise nevermind, it's not a big problem. There's a small chance of misconfiguration if the wrong field is used to change maximum length for an attribute.

User avatar
Kentico Developer
Kentico Developer
Kentico_IvanaT - 7/27/2010 3:35:48 AM
   
RE:[5.5.3789] Textarea field doesn't apply maximum text length
Hi.

Thank you for description.

I set: Attribute size: 4 , Maximum text length:6,
I tried to submit text with length of 6 and I received error message: The maximum length of the text is 4 characters, but you have entered 6 characters.

Then I set Attribute size: 4 , Maximum text length:2,
I tried to submit text with length of 4 and I received error message: The maximum length of the text is 2 characters, but you have entered 4 characters.

So both settings are checking textarea size. The first one Attribute size sets the size of column in the database. The second one is a form validation setting.

Thank you again for explanation.

Best Regards,

Ivana Tomanickova