These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

Upper Case

Karina.Gambarjan
Registered: May 15 2007
Posts: 4

Hi Tom! I try to transform all the letters in [Fullname]text field to upper case. Tried all the expressions in Forum inclusive this one:
event.change = event.change.toUpperCase();
 
It does'not work for me. I am not är Java Script specialist at all. Any other expressions I can try?

My Product Information:
Reader 7.0.0, Windows
pddesigner
Registered: Jul 9 2006
Posts: 858
Try using a Regular Expression field validation JavaScript. Refer to the Acrobat JavaScript Developers guide on the Adobe site. Use the above as a keyword search to find the manual.

My favorite quote - "Success is the ability to go from one failure to another with no loss of enthusiasm.

Karina.Gambarjan
Registered: May 15 2007
Posts: 4
Hi Eugene! Thank you for your reply. I found the following example in the manual:


re = /\w+\s/g;
str = "fee fi fo fum";
myArray = str.match(re);
document.write(myArray);


What should I change in this regular expression to get the [Fullname]displayed in upper case?

The problem is: some clients enter their names with small letters in our webb applications form. All this is stored in the database. When I am printing pdf agreements to send back to clients, it looks bad with all this names in small letters.

/Karina