calin-beard
11/13/2017 - 4:28 PM

Hide the form and display an image after form submit

Hide the form and display an image after form submit

<!-- START code for displaying an image instead of the form after submission -->
<style>
    #element-188{
        display: none; /*hide the image by default*/
    }
</style>

<script>
window.instapageFormSubmitSuccess = function( form ){ /*form submit event*/
    $('#element-186').css('display', 'none'); /*hide the form*/
    $('#element-188').css('display', 'block'); /*show the image*/
};

</script>
<!-- END code for displaying an image instead of the form after submission -->