I need a Button with two functions.
The first is to open the lightbox and the second to open a new tab(with link).
In the button settings I can only adjust one function.
Someone a idea?
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.
Hi Martin,
What you can do is to link the button by code then inside the onClick --> open the lightbox. So, your code should look something like this :
$w.onReady(function () { $w("#button").link = "http://www.wix.com";// Ling the button $w("#button").target = "_blank";// open in new tab $w("#button").onClick(()=>{ wixWindow.openLightbox("lightbox"); }); });
Hope this helps! Best, Mustafa