Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Formatting textfield

Avatar

Level 2

form1.#subform[0].TextField7::exit - (JavaScript, client)

var myVar = TextField7.rawValue;

var myNextVar = myVar.toUpperCase();

TextField1.rawValue = myNextVar;

form1.#subform[0].TextField7::docReady - (JavaScript, client)

xfa.host.setFocus(TextField7);

I'm trying to get the starting location for the cursor on the form to be this textfield and for the user entered text to change to uppercase. It won't work!

Help please!

1 Reply

Avatar

Level 10

You can do this even simpler with

this.rawValue = this.rawValue.toUpperCase();