The limit length with max characters can be set from the object palette (i.e. check box and number of characters to limit text box too). I want to set those properties using javascript code. I've found the following example:
this.value.text.maxChars = "4";
It works but only after exiting the field, steps;
1) On entering, clear default value and set maxChars
2) Form allows more than 4 characters
3) Exit field
4) Go beck to field, field then stops entry if more than 4 characters.
I want the form to stop at 4 characters when I enter the field, not when I leave and come back. Is this a known bug?