Copy link to clipboard
Copied
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!
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
That's correct. Everything you mentioned can also be achieved using a script (that's not always the case).
Find more inspiration, events, and resources on the new Adobe Community
Explore Now