Skip to main content
Known Participant
May 10, 2017
Answered

Disable Checkbox

  • May 10, 2017
  • 1 reply
  • 953 views

Hi,

How do I disable checkbox?

                                      {

                                            type: "check_box",

                                            item_id: "SPst",

                                            name: "Preview Filename",

                                            variable_Name: "bSaveWPostFx",

                                           

                                        },

I want this checkbox to always be checked (read only/disabled) so user cannot uncheck it.

S

This topic has been closed for replies.
Correct answer try67

Do you have the JavaScript for Acrobat API Reference? If so, you'll find it under the app methods.

Example #2 demonstrates both applying a value and setting fields as enabled/disabled.

Basically it would be something like this:

initialize: function(dialog) {

    dialog.load({"SPst": true });

    dialog.enable({"SPst": false });

}

1 reply

try67
Community Expert
Community Expert
May 10, 2017

In the dialog's initialize event you can load a value and set the field as

disabled.

See the documentation of the execDialog method for more details and

examples.

On Wed, May 10, 2017 at 8:45 PM, sargums46564804 <forums_noreply@adobe.com>

suemo22Author
Known Participant
May 10, 2017

Can you send me a link?  I just tried to look up execDialog and was unable to find a good answer.

try67
Community Expert
try67Community ExpertCorrect answer
Community Expert
May 10, 2017

Do you have the JavaScript for Acrobat API Reference? If so, you'll find it under the app methods.

Example #2 demonstrates both applying a value and setting fields as enabled/disabled.

Basically it would be something like this:

initialize: function(dialog) {

    dialog.load({"SPst": true });

    dialog.enable({"SPst": false });

}