Expand my Community achievements bar.

Learn about Edge Delivery Services in upcoming GEM session
SOLVED

maxLength, allowBlank are not working in TouchUI

Avatar

Level 7

Hi Team,

I have added maxLength(50) and allowBlank(false) properties to the Touch UI dialog's node which extends granite/ui/components/foundation/form/textarea (sling:resourceType). But whenever I entered nothing and clicked on tick mark (✔), it is not restricting me. Also I'm able to enter more than 50 characters in the text area. Are these bugs in Touch UI? Please let me know how can I achieve these in Touch UI. Your comments are welcome.

Thanks,

AryA.

1 Accepted Solution

Avatar

Correct answer by
Level 3

"maxlenth"(lowercase 'l') is the property for limiting the number of characters in a textfield.

View solution in original post

2 Replies

Avatar

Level 7

We can add "required" property with value "true" to make a field as mandatory in granite ui. still not identified to validate characters length.

Avatar

Correct answer by
Level 3

"maxlenth"(lowercase 'l') is the property for limiting the number of characters in a textfield.