Copy link to clipboard
Copied
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
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 });
}
Copy link to clipboard
Copied
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>
Copy link to clipboard
Copied
Can you send me a link? I just tried to look up execDialog and was unable to find a good answer.
Copy link to clipboard
Copied
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 });
}
Copy link to clipboard
Copied
That totally worked!!!!
This really dummy proofs it.
TY so much try67.
Find more inspiration, events, and resources on the new Adobe Community
Explore Now