Jump to content
Sign in to follow this  

Acrobat and JavaScript

Recommended Posts


Just thought I would throw this out here, to see if anyone is intimately familiar with Acrobat scripting. I have a customer that wants a document level script to manipulate check boxes when the document is opened. I started out testing just one, and have tried the following two methods. The first assumes the document begins with the box checked, the second assumes it begins with the box unchecked.

var c1 = getField("CheckBox1");
c1.value = "Off"; //Unchecks the box
var f = this.getField("CheckBox1")
f.checkThisBox(0, true);

I have had two guys who do much more with Acrobat than I do tell me either should work. And indeed they do work if I create a button and assign the script to the button, just not when I create a document-level script. Just curious if anyone does a lot with doc level scripting in Acrobat, or has ever seen something like this.

√-1 2^3 ∑ π, and it was delicious!

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.