Hi Marylin,
Are you using the actual name of the Lightbox in your code?
This is what you have:
wixWindow.openLightbox(‘lightbox name’, $w(’ #dataset1 ').getCurrentItem());
You need something like this:
wixWindow.openLightbox(‘Lightbox1’, $w(’ #dataset1 ').getCurrentItem());
Does this help?
Yisrael