How can I make a lightbox appear (when a form is submitted) only when specific criteria are met on the form?

I just tried this as well:

import wixWindow from 'wix-window';

$w("#submitbtn").onClick( (event) => { 
 let newValue = $w("#dropdown1").value;
 
 if (newValue === "5 Stars - Excellent") 
      wixWindow.openLightbox("Review Us");
  }
);

This wouldn’t work either