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

merge fields

inosent
Registered: Jun 13 2009
Posts: 10
Answered

i have two fields, first and last

but i want to send a letter to a client

i dont know how long the names will be so the individual fields are wide

but when i print out the letter it looks bad and i want to put the two names together in a single field

what i want javascript to do for me to take the contents of first and last and place them into a single filed 'fnl' for example, with a space between them so when i print the letter it looks normal

thanks!

try67
Expert
Registered: Oct 30 2008
Posts: 2399
this.getField("fnl").value = this.getField("firstfield").value + " " + this.getField("secondfield").value;

- AcrobatUsers Community Expert - Contact me personally at try6767 [at] gmail [dot] com
Check out my custom-made scripts website: http://try67.blogspot.com

inosent
Registered: Jun 13 2009
Posts: 10
yeah baby! it works! i only spent all day scouring the net for that, lol

thanks