Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Eric

    (@emartin24)

    The form isn’t supposed to close automatically. There is part of the form that is still showing, if that is what you are referring to, you’d need to modify the js code to hide the visible content.

    If you want the form to close automatically, in smcf.js change:

    success: function (data) {
    	$('#smcf-container .smcf-loading').fadeOut(200, function () {
    		$('#smcf-container .smcf-title').html(smcf_messages.thankyou);
    		$('#smcf-container .smcf-message').html(data).fadeIn(200);
    	});
    },

    To:

    success: function (data) {
    	$('#smcf-container .smcf-loading').fadeOut(200, function () {
    		$('#smcf-container .smcf-title').html(smcf_messages.thankyou);
    		$('#smcf-container .smcf-message').html(data).fadeIn(200);
    		setTimeout($.modal.close, 3000); // close after 3 second
    	});
    },

    You can change the time (currently 3000 ms or 3 sec) to fit your needs. I didn’t test it, so let me know if it does not work.

    -Eric

    Thread Starter g01010

    (@g01010)

    Thanks for following up and supplying some code. I’ll test and report back.

    Maybe I was imagining that the form closed automatically. It’s possible…

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: SimpleModal Contact Form (SMCF)] SMCF not closing fully after sending mail’ is closed to new replies.