I’m doing some work converting my Prompts to HTML Previews (which are so much nicer, even if they take a bit more work to craft) and I’m having some trouble testing for whether “cancel” or “continue” or something else was pressed in the preview window.
Here’s the condition:
I created a script that feeds a bunch of JSON data into various fields to create some HTML and then the script says:
let preview = HTMLPreview.create();
preview.show(webpage);
if (preview.show)
{
In my script, I will either press “cancel” on the preview window or I will press the custom HTML button I created to send data to the next part of the script. How can I test for whether I pressed “cancel”? Preview.show isn’t quite right I know see–it’s just testing for whether the preview showed or not.