How to make Lightbox appear when Register button is clicked only for specific repeater item?

I have events in a repeater and I am trying to customize each event such that when one event is still ongoing, clients can click the ‘Registration’ button to go to an RSVP page, and on the other hand, for events that are over, I wish to have a ‘Event Has Ended’ lightbox appear when the same ‘Registration’ button is clicked.

Is there any easy way to get around this as I am clueless with coding and have tried many suggestions without any success… and it has been weeks with no resolution. :frowning:

I can’t seem to find any similar cases for reference.

Any help will be deeply appreciated.

Not sure if this helps - the area that requires help is here : https://www.healerslodge.com/workshops
→ Opens up to dynamic page for specific event
→ Would like to have a Lightbox ‘Event Ended’ pop out when someone clicks ‘Register Here’ button for an event that has passed
→ Would like to direct people to a RSVP URL when someone clicks ‘Register Here’ button for an event that is ongoing

Can we have two different sets of handling within the same repeater? Appreciate any help!

You should be able to do conditional if/else checks on the status of the event within your onClick handler. Then you can handle both cases.

Another option is to use https://www.wix.com/velo/reference/$w/repeater/onitemready so for each item you can check and see if an event happened already and then simply hide the Registration button.