コミュニティアチーブメントバーを展開する。

Submissions are now open for the 2026 Adobe Experience Maker Awards.

Mark Solution

この会話は、活動がないためロックされています。新しい投稿を作成してください。

解決済み

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 受け入れられたソリューション

Avatar

正解者
Level 3

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

元の投稿で解決策を見る

2 返信

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

正解者
Level 3

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