Skip to main content
smamula
Participant
March 19, 2018
Question

Combine multiple texr fields into one

  • March 19, 2018
  • 2 replies
  • 749 views

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 has been closed for replies.

2 replies

smamula
smamulaAuthor
Participant
March 19, 2018

Thank you for your answer.

Result is this:

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

Thanks in advance

try67
Community Expert
Community Expert
March 19, 2018

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

smamula
smamulaAuthor
Participant
March 19, 2018

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

Cheers!

try67
Community Expert
Community Expert
March 19, 2018

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;