Using a Lightbox dependent on User Input

Hi, I am trying to pop-up a Lightbox with a message if 2 dropbox’s inputs are the same. This is done when a user is going to SAVE their inputs by clicking a button. The code is below but does not work. Please help!

export function button19_click(event, $w) {
if ($w(“#dropdown2”) = $w(“#dropdown1”)){
$w(“#lightbox1”).show
}
}

Hi!

The method that you’re looking for is openLightbox() .
The method .show() doesn’t exists for lighbox.

Doron.

Thanks Doron. It worked now. I have a follow up question about a different subject. Can I change an element background color on a repeater, depending on what the repeater is showing?

Please open a new thread regarding your new question and I’d be happy to assist.

Doron.