Solved

Java Script for Uppercase

Posted on 2010-09-13
2
697 Views
Last Modified: 2012-05-10
I've created a dynamic stamp in Adobe Acrobat 9.  This stamp has a prompt on it and it converts the prompt to uppercase.  My code is as follows:

I have a Custom Format Script as follows:
event.value = event.value.toUpperCase()

Custom calculation script as follows:
var cAsk = "Enter Defendant Number" ;
var cTitle = "Defendant Letter:  ";
if(event.source.forReal && (event.source.stampName == "#wsK7bOwwrp9tOU90XY1knC"))
{
  var cMsg = app.response(cAsk, cTitle);
  event.value = "Deft-" + cMsg;
  event.source.source.info.exhibit = cMsg;
}


I need to change the code so the word "Deft-" stays in title case and only the "cMsg" message converts to uppercase.  

Can anyone help me alter my code?

Thank you in advance for your help!

0
Comment
Question by:Senniger1
2 Comments
 
LVL 65

Accepted Solution

by:
rockiroads earned 250 total points
ID: 33663528
why dont you just upperCase cMsg?

"Deft-" + cMsg.toUpperCase()
0
 
LVL 86

Assisted Solution

by:CEHJ
CEHJ earned 250 total points
ID: 33663543
>>I need to change the code so the word "Deft-" stays in title case and only the "cMsg" message converts to uppercase.  

What's wrong with the following?
 event.value = "Deft-" + cMsg.toUpperCase();

Open in new window

0

Featured Post

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

PaperPort is a popular document imaging/management product from Nuance Communications (http://www.nuance.com/). It is in widespread use by both individuals (http://www.nuance.com/for-individuals/by-product/paperport/index.htm) and businesses (http:/…
Java functions are among the best things for programmers to work with as Java sites can be very easy to read and prepare. Java especially simplifies many processes in the coding industry as it helps integrate many forms of technology and different d…
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:
We often encounter PDF files that are pure images, that is, they do not have text characters, but instead contain only raster graphics. The most common causes of this are document scanning software and faxing software/services that create image-only…

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now