I have created bookmarks which send the user to various fields in my Acrobat 8 form. The bookmarks work correctly, doing exactly that which is intended. However, when I open the JS Console, I get a slew of "SyntaxError: unterminated string literal
1:debugexec" errors. If I delete all of the bookmarks, no more errors. The scripts are all very simple. I've tried two formats:
var f = this.getField("txtName");
f.setFocus();
and:
this.getField("txtName").setFocus();
Both yield the same errors.
What gives?
Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script