how to pass user input from app.response() to the pdf page
Good afternoon.
I am creating an action that will print x number of labels.
i am able to prompt the user for the number of labels needed but i am so far unable to pass that input to the pdf page, i am capturing and running a for loop with the input but i need to 'print it' to the page.
here is the code that i have so far, i added some style hoping that would do the trick but it did not.
i am using this.getField() (like the adobe guide suggests) but it returns 0.
var labels = app.response("How many labels?");
var f = this.getField("labels").value;
console.println("the number is " + labels);
for (var i = 1; i <= labels; i++){
console.println(i);
}
f.textSize = 16;
f.textColor = color.red;
f.textFont = font.Times;
f.display = display.visible;
console.println("f is " + f);
Do you have any suggestions?
Thanks.
