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

Javascript for app.alert questions in adobe pro

Community Beginner ,
Oct 25, 2019 Oct 25, 2019

I have a script for app.alert with a yes or no question. That same button has an action trigger on mouse up with the javascript to run which is the app.alert asking "do they want to continue?" and another javascript to hide different fields, then an execute menu item to save as and submit form. What javascript can I write for when the user answers yes then it will execute all the action trigger, but if they say no or just close out the box it will do nothing and NOT execute the other trigger/commands? 

 

Thank you so much in advance! 

TOPICS
Create PDFs , How to , PDF forms
2.1K
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 ,
Oct 25, 2019 Oct 25, 2019

None. You have to do it all in a single script. A script can't prevent another command (especially a non-Execute a JavaScript one) from executing.

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 ,
Oct 25, 2019 Oct 25, 2019

Ahhh I see, so I would need to create a script rather than doing the trigger commands. 

 

Thank you so much! I need to get started on it lol 

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 ,
Oct 25, 2019 Oct 25, 2019
LATEST

That's correct. Everything you mentioned can also be achieved using a script (that's not always the case).

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