Skip to main content
smamula
Participant
Mar 19, 2018 1:03 PM UTC
Question

Combine multiple texr fields into one

I`m new here. Can you help me or direct me to the answer. I want concentrate in Adobe Acrobat Pro multiple text field values in one and in that field values are as a list etc.

Value1

Value2

Value3

Thank you in advance for your help.

This topic is closed to new replies. Start a new post to keep the conversation going.

4 replies

smamula
smamulaAuthor
Participant
Mar 19, 2018 1:41 PM UTC

Thank you for your answer.

Result is this:

I want to be like this (I used paint to change it):

Thanks in advance

Translate
try67
Community Expert
Community Expert
Mar 19, 2018 1:44 PM UTC

In the code above, replace ", " with "\n". Also, make sure the field is set as Multiline.

Translate
smamula
smamulaAuthor
Participant
Mar 19, 2018 1:48 PM UTC

I thank you some much! I´m novice in Javascript.

Cheers!

Translate
try67
Community Expert
Community Expert
Mar 19, 2018 1:25 PM UTC

You can use this script as the custom calculation script of the target field:

event.value = this.getField("Value1").valueAsString + ", " + this.getField("Value2").valueAsString + ", " + this.getField("Value3").valueAsString;

Translate