Search.../

maxLength

Sets or gets the maximum number of characters in the input text.

Type:

numberRead & Write

Was this helpful?

Get a text input's maximum length

Copy Code
1let myLength = $w("#myTextInput").maxLength; // 20
Set a text input's maximum length

Copy Code
1$w("#myTextInput").maxLength = 20;