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

Left(s1, n1) - help!

newuser123
Registered: Nov 20 2011
Posts: 2
Answered

Thanks for any advice in advance!
 
I'm very very new to programming and am trying to create a form...
 
My TextField1 is First Name and my TextField2 is Surname, I would like to use the calculate functinon to generate the employee email in a hidden field
   
form1.#subform[0].TextField6::calculate - (FormCalc, client)
Left(TextField1, 1) + TextField2
 
What am I doing wrong???
 
The output is "0"

My Product Information:
LiveCycle Designer, Windows
radzmar
Expert
Registered: Nov 3 2008
Posts: 1202
Accepted Answer
Hi

to combine several strings into on you have to use the Concat function.

This script will combine 3 strings (1st letter of TextField1, the whole value of TextField2 and the string "@company.org").
$ = Concat(Left(TextField1, 1), TextField2, "@company.org")

radzmar
LoveCycle Blog
Documents you need:
LiveCycle Designer ES2 Docs

newuser123
Registered: Nov 20 2011
Posts: 2
radzmar wrote:
Hito combine several strings into on you have to use the Concat function.

This script will combine 3 strings (1st letter of TextField1, the whole value of TextField2 and the string "@company.org").
$ = Concat(Left(TextField1, 1), TextField2, "@company.org")
Thank you