Skip to main content
jctremblay
Community Expert
Community Expert
Sep 20, 2019 7:37 PM UTC
Answered

Add Menu Item - app.response & Acrobat Help

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?

This topic is closed to new replies. Start a new post to keep the conversation going.
jctremblay
jctremblayCorrect answer
Community Expert
Sep 21, 2019 3:31 PM UTC
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. 🙂

3 replies

Bernd Alheit
Community Expert
Community Expert
Sep 21, 2019 5:55 AM UTC

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

Translate
jctremblay
Community Expert
jctremblayCommunity ExpertAuthorCorrect answer
Community Expert
Sep 21, 2019 3:31 PM UTC
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. 🙂
Translate
Bernd Alheit
Community Expert
Community Expert
Sep 21, 2019 4:28 PM UTC
Sometimes a restart of the system will help.
Translate