JavaScript Prompt - Hide Cancel Button?


#1

I’m wondering if there is a way to hide the cancel button when defining a prompt in a script. I see that this can be done if a Prompt step is added, but how would it be done if the prompt is generated using a script instead?


#2

You need to set isCancellable to false: Scripting Documentation.


#3

Perfect! Thanks.

And thanks for that link.


#4

Rosemary, your link is dead.


#5

That’s because Greg changed this around a little since @RosemaryOrchard’s original post - things change quickly :wink:

You can (currently) find the scripting reference documentation at https://reference.getdrafts.com and the prompt documentation (including the isCancellable property) at https://reference.getdrafts.com/objects/Prompt.html.


#6

Thank very much you.