These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

Text Box

jg0017
Registered: Jan 17 2007
Posts: 2

Although I am an experienced programmer, I am new to Adobe Professional and can not find how to merge text (not numeric) for three fields into a four field. Example: enter first, middle and last name in separate field but merge then where needed.
 
Thanks,
 
Mike

My Product Information:
Acrobat Pro 8, Windows
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
This is something that has to be done with JavaScript. The specifics depend on the type of form you have, xfa or acroforms. Either way, you need to write a calculation script. For an AcroForm the code would look something like this

event.value = this.getField("FirstName").value + this.getField("MiddleName").value + this.getField("LastName").value;

of course the field names need to be changed to match the ones on your form.

Thom Parker
WindJack Solutions
[url=http://www.windjack.com]www.windjack.com[/url]

The Acrobat JavaScript Reference, Use it Early and Often
[url=http://partners.adobe.com/public/developer/en/acrobat/sdk/
pdf/javascript/AcroJS.pdf]Acrobat JavaScript Reference[/url]

Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script