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

How to generate text based on information manually input into other text boxes

New Here ,
Feb 28, 2023 Feb 28, 2023

Copy link to clipboard

Copied

Hi,

 

I am trying to make a PDF form that is used to create a word picture for assessing trainees.

 

I currently have a form that generates text based on a drop down selection, but I want that text to display individuals names, dates, etc, that have been input manually at the top of the form.

 

a shortened version of what i am currently using is: 

 

var f = this.getField("Text12");
if(event.value == "Option1")
f.value = "on x, x has displayed x towards x";
else f.value = "";

 

I have this set so that different text generates based on the selection from a drop down with multiple options, which is working fine.

 

on line 4, everywhere i have put an 'x' i want to populate with information that is found in other text boxes on the same PDF. Is there a way to refernce these other text boxes so that my auto generated text will display whatever values i put in them?

 

I hope this makes sense. I am very new to this and dont really know what i am doing. Any help would be greatly appreciated.

TOPICS
Create PDFs , How to , JavaScript , PDF forms

Views

1.2K

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 , Feb 28, 2023 Feb 28, 2023

You can create a text string like this:

"text " + this.getField("field1").valueAsString + " other text"

Votes

Translate

Translate
New Here ,
Feb 28, 2023 Feb 28, 2023

Copy link to clipboard

Copied

woops, i mean line 3 where i have put the x's

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 Expert ,
Feb 28, 2023 Feb 28, 2023

Copy link to clipboard

Copied

You can create a text string like this:

"text " + this.getField("field1").valueAsString + " other text"

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
New Here ,
Feb 28, 2023 Feb 28, 2023

Copy link to clipboard

Copied

LATEST

Thankyou!

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