Skip to main content
Known Participant
April 7, 2019
Answered

Stamp results into one text field

  • April 7, 2019
  • 1 reply
  • 741 views

I made a stamp that works. It fills in the individual text fields. It's based on the app.response type. What I'd like to do now is, is to have all the selections populate into one text field instead of populating each of the individual text fields. In essence to compose a sentence of the selection information I make. I need help doing it can someone chime in as to how I can accomplish this? If this can be done? A little example would be very helpful. Thanks.

This topic has been closed for replies.
Correct answer try67

Change each line to:

msg+=app.response("Enter something:") + " ";

1 reply

try67
Community Expert
Community Expert
April 9, 2019

You can do it like this:

var msg = "";

msg+=app.response("Enter something:");

msg+=app.response("Enter something else:");

msg+=app.response("Enter something different:");

this.getField("Text1").value = msg;

pdfUser1Author
Known Participant
April 10, 2019

That worked! But, there needs to be a space between the responses. The way it is now all the responses are mushed together as one word. Hope you have a nice trip, remember your sunscreen.

try67
Community Expert
try67Community ExpertCorrect answer
Community Expert
April 10, 2019

Change each line to:

msg+=app.response("Enter something:") + " ";