Hi,
I currently have a button, in a repeater, that is linked to a URL field in my dataset. Is it possible to link it to a lightbox instead and how would I do this?
Thanks,
Rachel
Important forum update
This forum is migrating to one unified Wix community forum starting July 26th, and will be read-only during the process.
Wishlist Page is the official platform for requesting new features. You can vote, comment, and track the status of the requested features.
I have tried this...
let btnLabel = "Book Me"; $w("#btnBookMe").label = btnLabel;
But it is not changing the text.
Hi,
I've actually got it working by connecting my button label to a text field in my database, which holds the lightbox name, using the following code...
export function btnBookMe_click(event, $w) { let lightboxName = $w("#btnBookMe").label; wixWindow.openLightbox(lightboxName); }
But is it possible to keep the button label as 'Book Me' and not have it display the text in the database?
Thanks again,
Rachel
Hi J.D,
Apologies, the button is actually in a dynamic page (linked from a repeater) which gives information on a coach, e.g .../coaches/COACHNAME. Each coach has their own booking page (an external widget) which I would like to display in an html frame, in a lightbox, when the 'Book Me' button is clicked.
I currently have a field in my dataset (bookingWidgetUrl) that links to a page in my site but I would to open a lightbox instead so I'm looking to replace bookingWidgetURL with a lightbox name and then somehow link it to the button.
Many thanks,
Rachel
Yes. But you should add more explanation regarding what exactly you're trying to achieve.
Are you trying to open the same light-box for all items, something else? Add as many details as possible.