Skip to main content
New Participant
March 20, 2018
Answered

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

  • March 20, 2018
  • 1 reply
  • 549 views

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:

to this box:

This topic has been closed for replies.
Correct answer try67

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;

1 reply

try67
Community Expert
try67Community ExpertCorrect answer
Community Expert
March 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;

New Participant
March 20, 2018

thank you

New Participant
March 20, 2018