Lightbox selection driven by database field

I’ve inserted a “Repeater” on my page which successfully pulls data from my Wix collection; Wix makes this very easy!

I’d like to add a bit of dynamics to the page though: if the database field “Lightbox” = 1, then I’d like the respective “Repeater” button to pull up lightbox1 and if “Lightbox” = 2, then I’d like the same “Repeater” button to instead pull up lightbox2. Finally, if “Lightbox” = 0, then I’d like the same “Repeater” button to instead utilize the field “Link” as the URL to launch.

Is this possible with Wix? If so, would you please guide in accomplishing this?

Hi,
Check out this thread regarding the same question :slight_smile:

Good luck!
Tal.