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

I think this is what you’re looking for:

workerLogger.js:103 function submitbtn_click is registered as a static event handler but is not exported from the page code. Please remove the static event handler or export the function.