Receive form response message in form page

3 replies · opened Jun 19, 2021

CcolorclippingJun 19, 2021

I like receive response message in form page, instead of showing notification message. I add data-alert-type="false" after class="form-widget".

I tried by changing plugins.js at line 425 by this

 let msg = data.message;
 $(form).trigger( 'formSubmitSuccess', msg );

and also change plugins.ajaxform.js at line 120

let msg = data.message;
$(form).trigger( 'formSubmitSuccess', msg );

and tried to receive 'msg' variable like this

$('#modal-feedback').on( 'formSubmitSuccess', function(msg){
     alert(msg);
      setTimeout(function(){
	 $('.modal-feedback-success-modal').magnificPopup('close');
	}, 500);
});

But I did not get response message in formSubmitSuccess function.

Please give me solution.

SSemicolon WebSTAFFJun 20, 2021

Hello,

The Latest Version of Canvas already includes this functionality. Simply update to the Latest Version and use the following codes:
[ch_pre]<script>
jQuery('#template-contactform').on( 'formSubmitSuccess', function( event, data ) {
console.log( data.message );
});
</script>[/ch_pre]

This will definitely work fine. Hope this Helps!

Let us know if we can help you with anything else or if you find any further issues.

CcolorclippingJun 21, 2021

That works perfectly! Thanks for awesome template. Look forward to the continues updates! Thanks for your quick response. Love your support. Best wishes to SemiColonWeb Team.

SSemicolon WebSTAFFJun 21, 2021

Thank You so so much for the Kind Words! :)

Very happy to Help! :) Do let us know if we can help you with anything else.

Have the same question, or something new?

Sign in to the Canvas dashboard to reply or open your own topic. Canvas owners get direct help from the SemiColonWeb team.

Reply on the dashboard