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.
Copy link to clipboard
Copied
You can create a text string like this:
"text " + this.getField("field1").valueAsString + " other text"
Copy link to clipboard
Copied
woops, i mean line 3 where i have put the x's
Copy link to clipboard
Copied
You can create a text string like this:
"text " + this.getField("field1").valueAsString + " other text"
Copy link to clipboard
Copied
Thankyou!

