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

Add Menu Item - app.response & Acrobat Help

Community Expert ,
Sep 20, 2019 Sep 20, 2019

Copy link to clipboard

Copied

I noticed that if I add a menu item (with a .js in the user folder) in the main Help menu, the first app.response will not let me enter any text. If I place that script in any other main Acrobat menu, it works. My guess it's because the Help menu already contain a search entry. That the only difference between this menu and the others. Am I riht with that finding? 

Try with this sample code:

function alertMe(){
var cMsg = app.response("Enter the message:");
var cMsg2 = app.response("Enter the message2:");
app.alert (cMsg+cMsg2);
}
//
app.addMenuItem({cName:"Alerte Me!", cParent:"Help", cExec:"alertMe();" });

 
Is their a workaround this?

TOPICS
Acrobat SDK and JavaScript

Views

430

Likes

Translate

Translate

Report

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 , Sep 21, 2019 Sep 21, 2019
I'm using the latest version of DC. A good night of sleep and a restart of the computer and it's working as expected. But I swear, the first app.response was not working last night. 🙂

Likes

Translate

Translate
Community Expert ,
Sep 20, 2019 Sep 20, 2019

Copy link to clipboard

Copied

What version of Adobe Acrobat does you use? The script is working in Adobe Acrobat DC.

Likes

Translate

Translate

Report

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 ,
Sep 21, 2019 Sep 21, 2019

Copy link to clipboard

Copied

I'm using the latest version of DC. A good night of sleep and a restart of the computer and it's working as expected. But I swear, the first app.response was not working last night. 🙂

Likes

Translate

Translate

Report

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 ,
Sep 21, 2019 Sep 21, 2019

Copy link to clipboard

Copied

LATEST
Sometimes a restart of the system will help.

Likes

Translate

Translate

Report

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