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

Output in all Capital Letters

Avatar

Level 2

Anybody know if you can get your form to out put , regardess of what the user inputs, a field in all capital letters?

2 Replies

Avatar

Level 5

Hi,

You can use the function .toUpperCase(); on any string to make it upper (capital) letters.

for example.

TextField1.rawValue = TextField1.rawValue.toUpperCase();

As to when you want to run this, that is really up to use.

If you are wanting all text fields changed and your form has a submit button you could do it at that point just by looping through the fields, or you could place it on the exit event.

Hope this helps

Malcolm

Avatar

Level 10

Write the following line in any TextField's Change event

This coverts each of the character entered into it's upper case.

Note: Malcolm's suggestion also will work but, that will convert the entire string once you exit from the field.

Nith