Answered
Hi all,
I'm fairly new to java scripting and I'm trying to write a short piece of code to combine 3 text fields into one.
I have three fields; Surname, Firstname and Middlename. I want to be able to combine the three seperate fields into a single Fullname field.
ie. Fullname=Firstname+" "+Middlename+" "+Surname
Can anyone please help me with the Javascript equivalent of this and let me know which of the Fullname properties I should put the code in. (Calculate, Validation, etc)
Thanks very much!
PS: Using Acrobat 9
For the 'Fullname' field, select the 'Calculate' tab and select the 'Custom calculation script' option. The simplest code that can used is:
The above code will place two spaces between the first and surname if there is no middle name.
George Kaiser