Adobe LiveCycle Designer - how to reference output -

Posted on 2014-02-18
Last Modified: 2014-02-21
I am running into a road-block when desinging a PDF form. I have a few fields (LastName, FirstName, MiddleInitial) which is used for the user to input his information. I am trying to leverage the user's input as output in another text box (or similar) that would say

Lastname, MiddleInitial. FirstName agrees to the terms and ackowledges reading the procedures.

Is this even possible?
Thank you in advance.
Question by:WEC-CSS
  • 3
  • 2
LVL 34

Expert Comment

by:Dan Craciun
ID: 39868620
Yes, it is possible, using calculated fields. Select "Custom calculation script" and then use JS.

See here for a nice explanation:

Let me know if you need help with the actual javascript syntax.

It will be something like
event.value = this.getField("FirstName").value + this.getField("LastName").value + "your text here"

Open in new window


Author Comment

ID: 39868849
Hi Dan,

This helps, however i am having a tough time finding where to input the syntax code. Any type of edits i do require me to open up Adobe LiveCycle Designer. I found the selection for the Text Box, under Value tab, and i select 'Calculation Script' but i don't seem to know where to find the place to actually place a script.

I must be confusing how Adobe Reader Pro and Adobe LiveCycle Designer interact.
If i open the file itself inside Adobe Acrobat Pro, the Select Object is grayed out for me. I've removed the security, but still the same result.

Any ideas?
LVL 34

Accepted Solution

Dan Craciun earned 500 total points
ID: 39868888
The instructions I posted in my initial answer were for Acrobat.

If you're using LiveCycle, here's how to input calculations:

Author Comment

ID: 39877978
Thank you Dan. That got me going in the right direction. I ended up using FormCalc:
TextField1.rawValue = UserLastName.rawValue
However i was not able to figure out how to output multiple text values to one text field, i.e.
TextField1.rawValue = UserLastName.rawValue, UserMiddleInitial.rawValue, UserFirstName.rawValue
that did not work, and i cannot use any numerical values (+,-|, etc...). I also tried using space without avail.

I will mark this as accepted solution, however if you get a chance please let me know if you know how to output three different values under one text box.

Thank you.
LVL 34

Expert Comment

by:Dan Craciun
ID: 39878121
You can use:
TextField1.rawValue = UserLastName.rawValue.concat(" ", UserMiddleInitial.rawValue, " ",  UserFirstName.rawValue)

Open in new window

One caveat: it will display "null" on each of the empty fields.


Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Removal of frames in large Word 2007 files that were converted from PDF 5 28
Adobe Indesign CS6 4 98
PDFBox - convert image to PDF, PDF resolution 3 117
3d PDF Reader 5 46
Update 21-May-2015: I temporarily removed the source code and the code snippets to make major changes to the program. Regards, Joe A recent question here at Experts Exchange piqued my interest, so I decided to provide a thorough solution and publ…
In a previous article published here at Experts Exchange, Signature Image with Transparent Background (, I explained how to cre…
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…
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…

910 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

23 Experts available now in Live!

Get 1:1 Help Now