How to catch popup shut on recordsdata submission?

I the truth is hold a lead gen popup on my feature and I’d cherish it with a opinion to shut mechanically when the person hits the put up button. I'm not seeing that as an option, and I the truth is feel cherish I'm not finding it.

Can anyone back shed some light on this? Thanks!