I have a form that was created in LiveCycle. If I was the one that originally made it, I would have made it in Acrobat(I'd prefer to not have to remake it if possible). I suspect this might be an issue because of that, but we'll see.
I want to pick data out of the form and send it off to some other script. I have the fields named Type#, Rev# and Pgs# numbered from 1-13. When I type something into the field named Type1 and type this into the console:
var t = this.getField("Type1");
console.println(t);
I get:
null
true
So t is being set to null(or not set to anything)? When I take out the console line, I just get undefined. Is this because the form was made in LiveCycle? Do I have to use some other function because of that? If I am able to pick the values out using the special LiveCycle version of the functions, will I still be able to send off the values(in a global array. Yes, I know I'm lazy and that it's a horrible way to code and that I'm going to have to make a clean-up button) to a script in another file that operates like a normal Acrobat script? Or should I just remake the form in Acrobat?
Or, am I just using getField wrong?
See [url=http://www.acrobatusers.com/forums/aucbb/viewtopic.php?id=331]How to extract field names as text?[/url] for a post about a sample report.
George Kaiser