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

Trouble combining two text fields (First Name, Last Name)

BBI
Registered: Nov 6 2010
Posts: 2

I am using Adobe Acrobat 9.0
I am trying to combine a First Name and Last name field.
 
Under Test Field Properties of the Combined Field, what do I type in the Custom Calculation script to combine First Name and Last Name fields automatically. (I also need a space between First Name and Last Name)
 

My Product Information:
Acrobat Pro 9.0, Windows
Dimitri
Expert
Registered: Nov 1 2005
Posts: 1389
Hi BBI,

This one gets asked a lot. Try this phrase in the search box at the top of this page-
"combine two text fields"
You should find some scripts already written that will help you out.

Hope this helps,

Dimitri
BBI
Registered: Nov 6 2010
Posts: 2
Thanks Dimitri.

I found it.

For anyone who needs the answer.

var cFirst = this.getField('First Name').value;var cLast = this.getField('Last Name').value;event.value = cFirst + ' ' + cLast;