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

textfield consisting strings of other textfields

pablosos
Registered: Apr 11 2011
Posts: 5
Answered

Is there a possibility to set uo an textfield which is made up of other textfields? How can I realise it with blank lines?

My Product Information:
LiveCycle Designer, Windows
gkaiseril
Expert
Registered: Feb 23 2006
Posts: 4307
In FormCalc you can use the "Concat" function to join text strings together. You can use the Unicode value for the carriage return or new line to start a new line. See the Scripting Reference under LiveCycle Designer's Help menu option for more information.

George Kaiser

pablosos
Registered: Apr 11 2011
Posts: 5
Hello George,

thank you. The string matching worked out quiet well. But the new line or the unicode value don't. Can you help me?

Here's my code:

textfield3= Concat (textfield1, textfield2) works

textfield3= concat (textfield1, &#x000D, textfield2) doesn't work. why?
gkaiseril
Expert
Registered: Feb 23 2006
Posts: 4307
Accepted Answer
You need to but the value for the carriage return between quotation marks and use the unicode value as provided in the documentation Unicode Escape Sequence.

Concat (textfield1, "\u000d" ,textfield2)


" All Unicode characters have an equivalent 6 character escape sequence consisting of \u followed by four hexadecimal digits. Within any literal string, it is possible to express any character, including control characters, using their equivalent Unicode escape sequence. For example:"

"\u0047\u006f\u0066\u0069\u0073\u0068\u0021"
"\u000d" (carriage return)
"\u000a" (newline character)

George Kaiser