Limiting the number of characters that are accepted by the Field (script)

How to limit the number of characters accepted by the Field 

This script allows you to set a limit to the number of characters that are accepted for the Field.

If there are more characters, then they will be ignored.

 

var length=this.Field("example").Text.length;

if (length>3){

this.Field("_123").Text=this.Field("example").Text.substring(0,3);

}

 

Have more questions? Submit a request

Comments

0 comments

Please sign in to leave a comment.