Refresh dataset after closing lightbox

Good day,

Is there a way to refresh a dataset after closing a lightbox?

1 Like

ok! I was able to do it by closing the lightbox and passing back data to the opening function

1 Like

Hi abear,

Can you please show me how you did it?

Thanks!

My lightbox is called “News”

Lightbox
wixWindow.lightbox.close(confirmation);

Page
wixWindow.openLightbox(‘News’).then(confirmation => {
$w(“#dataset1”).refresh();
});

2 Likes