How to hide/skip 2nd step a lead (email) banner

Please place HTML code element in the 2nd step of banner, and then use this HTML code:

<script>
document.addEventListener("afterShow", function() {
    maxtAd.closeCreative();
});
</script>

If this code is used, then after user fills out form, the 2nd step of banner will automatically be hidden (banner will close itself).