• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Copying multiple field boxes to one single field box as a read only

Community Beginner ,
Mar 20, 2018 Mar 20, 2018

Copy link to clipboard

Copied

I am setting up a form that has a comments section. The comments section consist of multiple boxes (font size and font set) to ensure the text doesn't change so that it stays over the lines in form design. I want to take the entire text from all box fields and copy to one individual box on a separate page. I am sure this will require script of some sort, can anyone help me to do this?

These boxes:

Screen Shot 2018-03-20 at 4.52.03 PM.png

to this box:

Screen Shot 2018-03-20 at 4.52.17 PM.png

TOPICS
Acrobat SDK and JavaScript

Views

327

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
community guidelines

correct answers 1 Correct answer

Community Expert , Mar 20, 2018 Mar 20, 2018

Sure, it can be done using a script. Let's say the individual fields are called Comment1, Comment2, Comment3 etc.

Use this code as the custom calculation script of the multiline field where you want to show the combined value:

event.value = this.getField("Comment1").valueAsString + "\n" + this.getField("Comment2").valueAsString+ "\n" + this.getField("Comment3").valueAsString;

Votes

Translate

Translate
Community Expert ,
Mar 20, 2018 Mar 20, 2018

Copy link to clipboard

Copied

Sure, it can be done using a script. Let's say the individual fields are called Comment1, Comment2, Comment3 etc.

Use this code as the custom calculation script of the multiline field where you want to show the combined value:

event.value = this.getField("Comment1").valueAsString + "\n" + this.getField("Comment2").valueAsString+ "\n" + this.getField("Comment3").valueAsString;

Votes

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
community guidelines
Community Beginner ,
Mar 20, 2018 Mar 20, 2018

Copy link to clipboard

Copied

thank you

Votes

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
community guidelines
Community Beginner ,
Mar 20, 2018 Mar 20, 2018

Copy link to clipboard

Copied

LATEST

Votes

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
community guidelines