Solved

Java Script for Uppercase

Posted on 2010-09-13
2
702 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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Power PDF (http://www.nuance.com/for-business/document-imaging-and-scanning/power-pdf-converter/index.htm) is the newest product from the Document Imaging division of Nuance Communications (http://www.nuance.com/). It is available in two editions — …
This article focuses on how to remove password security from multiple PDF files by Adobe Acrobat program. Sometimes it is essential to access the stored data items and to print, edit as well as copy content from Portable Document Format files in abs…
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

840 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