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

How to show or hide a button based on pre defined keyboard shortcut in adobe javascript?

Community Beginner ,
Aug 26, 2020 Aug 26, 2020

I want to show or hide button based on keyboard shortcut in adobe javascript. I am using Adobe acrobat Pro. I have a compnmay logo and i need to browse the image required for specific set of users.  Hence the browse button to upload the image should be shiown  or hidden based on the  keyboard shortcut set via adobe javascript or so for those users. 

TOPICS
Acrobat SDK and JavaScript
416
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 ,
Aug 26, 2020 Aug 26, 2020

You can't apply a keyboard shortcut to buttons in a file, if that's what you mean.

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 Beginner ,
Aug 26, 2020 Aug 26, 2020

I meant the browse button to upload image will b hidden.. It whould be visible only for  certain users who have the privilege will have the  button visible with a pre defined keyboard short cut key  set via Adobe javascript. If not posisble, is there any option to do the same.

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 ,
Aug 26, 2020 Aug 26, 2020
LATEST

No, it's not possible to do it like that. It is possible to attach a password to these buttons, though.

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