Upper Case JavaScript for Designer

Avatar

Avatar

fjcunninghamjr

Avatar

fjcunninghamjr

fjcunninghamjr

23-05-2007

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

Replies

Avatar

Avatar

gkaiseril

Avatar

gkaiseril

gkaiseril

23-05-2007

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

Avatar

Avatar

dabralbm

Avatar

dabralbm

dabralbm

16-07-2015

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,