Can't figure out how to get a Lightbox to open after using button in HTML

I’ve used this tutorial to add an electronic signature feature to a page: https://support.totallycodable.com/en/article/create-an-electronic-signature-with-wix-code-corvid-custom-form

That’s all working fine and the data is collected correctly.
I just need some sort of confirmation/thank you pop up for once it’s been used so people know it worked. I’ve made a Lightbox but don’t know how to get it to show after the signature has been submitted - the red text on Step 5 of the above link indicates something should go there but I don’t know enough about coding to get it to work. Any help?

In the beginning of the page code, ad this line:

import wixWindow from 'wix-window';

and this part of code add this line:

//...code...code...
 $w("#saveSignatureDataset").save()
.then(() => {
  wixWindow.openLightbox("LightboxName");
}) 
//rest of your code....

Brilliant, thank you so much!

You’re welcome :slight_smile: