Level 1
Level 2
Sign in to Community
Learn more
Sign in to view all badges
Expand my Community achievements bar.
Hi guys, i need some help.
I want to set the max character of a text field by using javascript. How i can do it?
Help please
In the change event of your field:
if (xfa.event.newText.length>5)//5 is the maximum length of the text input xfa.event.change="";
Kyle
thanks guys. It works.
Balaji
thanks.
I've done in this way:
if(condition){ this.resolveNode("textfield.value.#exData").maxLength = "750"; // 750 is the max length}
if(condition){
this.resolveNode("textfield.value.#exData").maxLength = "750"; // 750 is the max length
}
it works!
Views
Likes
Replies