getField updating AFTER validation
I'm just starting out trying to get my head wrapped around acrobat javascript to try and automate some things, and thought I should try and so some simple tests.
So, I have the following function.
function Alert () {
console.println(doc.getField("PC").value);
}
And in the Validate tab for the "PC" field, I have set
"Run a custom validation script:"
Alert()
Yet when I look in the console, the value it prints is the value BEFORE I make a change. For example, if the value in the PC box is "Bob" and I change it "Alice", then it will print "Bob" instead of "Alice".
How can I get the new value for the field in the validate script?
