Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Disable Checkbox

Explorer ,
May 10, 2017 May 10, 2017

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

TOPICS
Acrobat SDK and JavaScript , Windows
827
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , May 10, 2017 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 });

}

Translate
Community Expert ,
May 10, 2017 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>

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
May 10, 2017 May 10, 2017

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
May 10, 2017 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 });

}

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
May 11, 2017 May 11, 2017
LATEST

That totally worked!!!!

This really dummy proofs it.

TY so much try67. 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines