Goal: I want to present the user a confirm dialogue from a script
Steps:
Create a button
Create an Event Handler Action: Run Scipt
The script should look something like this
async function do_the_work(){
await firstQuery();
await secondQuery();
await thirdQuery();
}
if ( confifm("are you sure?")) {
return do_the_work();
} else {
console.log( "the user was not sure" );
}
This is a request that I've seen a few times now - here's the most recent thread that comes to mind. I'll add your comments to the internal ticket that we are using to track ongoing interest in such a feature. In the meantime, the recommendation made by @dcartlidge above is the best alternative.