maxLength, allowBlank are not working in TouchUI | Community
Skip to main content
Dinu_Arya
Level 6
October 16, 2015
Solved

maxLength, allowBlank are not working in TouchUI

  • October 16, 2015
  • 2 replies
  • 1643 views

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.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by srikanth_pogula

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

2 replies

Dinu_Arya
Dinu_AryaAuthor
Level 6
October 16, 2015

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

srikanth_pogulaAccepted solution
Level 3
October 16, 2015

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