Feb 18, 2011, 3:03 PM
Set maxLength at client side
Hi,
If I set MaxLength property to a TextField control it limits the amount of characters to write in the input field.
I need to change maxLength value of TextFields and NumberFields controls at client side. But when I set txtField.maxLength = 15 it doesn't have the same behaviour and it is possible to write more than 15 characters. A tip with a warning message is show but I need to limit the numbers of characters too.
How can this be done?
Thanks in advance,
Dominik.
If I set MaxLength property to a TextField control it limits the amount of characters to write in the input field.
I need to change maxLength value of TextFields and NumberFields controls at client side. But when I set txtField.maxLength = 15 it doesn't have the same behaviour and it is possible to write more than 15 characters. A tip with a warning message is show but I need to limit the numbers of characters too.
How can this be done?
Thanks in advance,
Dominik.