Expand my Community achievements bar.

Upper Case JavaScript for Designer

Avatar

Level 2
Can anyone give me the javascript for LiveCycle Designer so my text field, once entered and tabbed to the next field, will change to Upper Case and where should the action be placed.

Frank
2 Replies

Avatar

Level 7
In FormCalc there is the "Upper()" function and JavaScript has the "toUpperCase()" method.

Avatar

Level 1

the easiest way to display the test in all upper case would be make it default within the Object layout. The scripting would be required if you need it based on a condition.

Steps:

1 - select the text field.

2 - click Object Palettes --> Select Value tab.

3- Click validate Pattern button  - select display tab.

4 - Select Pattern field and enter  "text{AAAAAAAA}"

the text will be displayed in caps as soon  as you enter it within the text field.

Please note I have restricted text field to max 8 chars,