Combine multiple texr fields into one

New Here ,
Mar 19, 2018

Copy link to clipboard

Copied

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.

TOPICS
Acrobat SDK and JavaScript, Windows

Views

423

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

Combine multiple texr fields into one

New Here ,
Mar 19, 2018

Copy link to clipboard

Copied

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.

TOPICS
Acrobat SDK and JavaScript, Windows

Views

424

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Mar 19, 2018 0
Most Valuable Participant ,
Mar 19, 2018

Copy link to clipboard

Copied

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;

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Mar 19, 2018 1
New Here ,
Mar 19, 2018

Copy link to clipboard

Copied

Thank you for your answer.

Result is this:

field1.png

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

fieldwanttobe.png

Thanks in advance

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Mar 19, 2018 0
Most Valuable Participant ,
Mar 19, 2018

Copy link to clipboard

Copied

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

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Mar 19, 2018 1
smamula LATEST
New Here ,
Mar 19, 2018

Copy link to clipboard

Copied

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

Cheers!

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Mar 19, 2018 0