Pop up wont appear when clicking button

Has anyone had any issues with the new pop ups? i’m trying to get mine to appear when you click a button. Im using Velo to set the trigger becaue i want to add user input on that page to be passed to the light box content.

It’s working well for me on my end. You can check here and I. put the code on to trigger it within the popup but I’ll share it here as well. https://robertor0.wixstudio.com/my-site-93

import { window } from '@wix/site-window';

$w('#button1').onClick(async () => {
  // Replace 'Donate' with the actual name of your lightbox, not the ID
  await window.openLightbox('Donate');
});

If you can share your code or a link, we might be able to see why it’s not working. When in doubt, there’s a few tips for debugging your code; I usually add a console log to see at what point the code isn’t working.

1 Like