Skip to main content
Known Participant
May 10, 2017 5:45 PM UTC
Answered

Disable Checkbox

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 is closed to new replies. Start a new post to keep the conversation going.
try67
try67Correct answer
Community Expert
May 10, 2017 9:26 PM UTC

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 });

}

4 replies

try67
Community Expert
Community Expert
May 10, 2017 5:48 PM UTC

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>

Translate
suemo22Author
Known Participant
May 10, 2017 6:19 PM UTC

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

Translate
try67
Community Expert
try67Community ExpertCorrect answer
Community Expert
May 10, 2017 9:26 PM UTC

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 });

}

Translate