Answered
I have a 1D barcode which currently displays the entire last name. I would like to have it display only the first 4 characters from the field "003_Last Name". Does anyone know how I would go about doing this? Substr doesn't seem to work.
var SSN=this.getField("001_SSN").valueAsString;
var PayGroup=this.getField("059_Pay_Group").value;
var last=this.getField("003_Last Name").value
event.value="*"+SSN+PayGroup+"MF01"+last+"*";
- AcrobatUsers Community Expert - Contact me personally at try6767 [at] gmail [dot] com
Check out my custom-made scripts website: http://try67.blogspot.com