This should be easy but i cant get it to work. I even copied the code from the API and have no results.
Picking a value from a dropdown menu then clicking a button should trigger the lightbox to open but im getting nothing:
import wixData from ‘wix-data’;
import wixWindow from ‘wix-window’;
:
: //some other code here
:
export function button5_click(event) {
//Add your code for this event here:
if ($w(‘#dropdown1’).value === ‘vanilla’)
(wixWindow.openLightbox(‘lightbox1’)
)}
Any suggestions? What stupid mistake have I made?