Previous | Next | (P-PDF) Acrobat 6.0
Topic: using this.getField to display user input
Conf: (P-PDF) Acrobat 6.0, Msg: 135136
From: riojimmy
Date: 6/23/2005 10:39 PM
Hi, I'm trying to generate a barcode from user input to a pdf form,
I have a hidden field with an * in it called ast. It's needed because the
barcode version that we use needs an asterisk at the beginning and end of the number: *12345*
This produces the barcode we can read.
Script:
var BarCode = 0;
var temp = 0;
if(this.getField("temp").value) {
this.getField("BarCode").value = this.getField("ast").value + this.getField("temp") + this.getField("ast").value;
} else {}
The above script produces:
*[object Field]*
I cannot get the numbers from the temp field, where have I gone wrong here?