It should be something like:
//page:
//in the event handler:
wixWindow.openLightbox('LightboxName', dataObject/*if you want to pass info from the page to the lightbox*/)
.then(data /*data object received on lightbox close*/ => {
//use the data to filter the dataset
})
No need to put the input values inside String().