Expand my Community achievements bar.

script for converting entries in field to uppercase

Avatar

Level 4

Hi all,

I wrote the following script to convert the entries in a field to upper case, but it is not working using FormCalc;

  on exit event:

  Upper(fieldtxt4.rawValue);

Thanks

v/r

Tammy;

1 Reply

Avatar

Level 10

You're mixing FormCalc and JavaScript together, try this on the Exit event:

$ = Upper($)

Or, on the Change event you can try the following JavaScript which will change each letter as it is typed:

xfa.event.change = xfa.event.change.toUpperCase();