Solved

Java Script for Uppercase

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

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

In a previous article published here at Experts Exchange, Signature Image with Transparent Background (http://www.experts-exchange.com/Web_Development/Document_Imaging/A_12380-Signature-Image-with-Transparent-Background.html), I explained how to cre…
*Adobe Acrobat 9 was used for this article.  Particular steps may vary depending on software versions. Adobe Acrobat has many, many variables that my be utilized to customize your forms for clarity and ease of use. The Form Editing Tool will be y…
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:

726 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