Solved

Java Script for Uppercase

Posted on 2010-09-13
2
703 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
What's wrong with this code? 4 34
Glassfish admin console not working 1 56
jsp error 6 43
project copy paste issue 1 62
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 — …
Java Flight Recorder and Java Mission Control together create a complete tool chain to continuously collect low level and detailed runtime information enabling after-the-fact incident analysis. Java Flight Recorder is a profiling and event collectio…
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…
In this sixth video of the Xpdf series, we discuss and demonstrate the PDFtoPNG utility, which converts a multi-page PDF file to separate color, grayscale, or monochrome PNG files, creating one PNG file for each page in the PDF. It does this via a c…

735 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