Expand my Community achievements bar.

SOLVED

Disable a form

Avatar

Former Community Member

Hi,

     How do I disable a form, including its fields and buttons, with a press of a button (possibly with Acrobat Javascript)?

    Is there a function that will block all fields?

    This blocking must be permanent, that is, once the button is clicked all buttons should be disabled, allowing only the printing function.

Thank you.

1 Accepted Solution

Avatar

Correct answer by
Level 10

Hi,

Check out Paul Guerette's excellent "LockAllFields" example here: http://forums.adobe.com/message/3168183#3168183. This version does not lock the button objects, whose name starts with "Button".

An earlier version locks all objects, including buttons: http://forums.adobe.com/message/2689916#2689916.

You will need to look at the script in the click event of the Lock button. This calls a function in a script object.

You can access the script object under variables in the hierarchy palette.

Hope that helps,

Niall

View solution in original post

1 Reply

Avatar

Correct answer by
Level 10

Hi,

Check out Paul Guerette's excellent "LockAllFields" example here: http://forums.adobe.com/message/3168183#3168183. This version does not lock the button objects, whose name starts with "Button".

An earlier version locks all objects, including buttons: http://forums.adobe.com/message/2689916#2689916.

You will need to look at the script in the click event of the Lock button. This calls a function in a script object.

You can access the script object under variables in the hierarchy palette.

Hope that helps,

Niall