Expand my Community achievements bar.

Radically easy to access on brand approved content for distribution and omnichannel performant delivery. AEM Assets Content Hub and Dynamic Media with OpenAPI capabilities is now GA.

Limit Length, Max Characters

Avatar

Level 2
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?
1 Reply

Avatar

Level 2
It seems once I worked out version issues between Designer and clinet this problem went away. i.e. Saved as Dynamic version 7 and upgraded the client to Adobe Reader version 7.