Javascript If Statement action with checkbox

2,440 views
Skip to first unread message

sk...@websitedesignspecialist.com

unread,
Jan 7, 2008, 9:55:35 PM1/7/08
to CenoPDF Support Group
I'm looking for a method to check for a checkbox to be checked, if so
I want to substitule the text in a box with some options. I.e. if the
box is checked replace the text box with a value. I have been
attempting to find the answer myself on the net and still am stumped..
any help would be greatly appreciated.

Admin

unread,
Jan 7, 2008, 10:46:06 PM1/7/08
to CenoPDF Support Group
Thanks for asking.

Here is main reference:
http://partners.adobe.com/public/developer/pdf/topic_js.html
Open the document called "Acrobat JavaScript Scripting Reference".
In the Field object section, you will see all the methods and
properties you can used in your Javascript to control the fields.

Your script should look like this:

if(this.getField("mycheckbox").isBoxChecked(0))
this.getField("mytext").value = "abcde";


On Jan 7, 6:55 pm, "s...@websitedesignspecialist.com"
Reply all
Reply to author
Forward
0 new messages