JavaScript Conflict with plugin 'Contact Form 7'
-
First Thanks for the lovely Plugin – we all love it…
Since upgrading Icegram to V1.9.10, I have a big issue with Plugin ‘Contact Form 7’. Actually, there is no active campaign on my Site and the JavaScript error occurs on a ‘Form Page’, for which I had never started a campaign!
The Icgram JavaScript conflict prevents the confirmation message & prevents also the field initialization of whole ‘Contact Form’.
Below what I found out. Thanks a lot for helping me…
——————————————————
Following error occurs after pressing ‘Confirm Button’ on my ‘Contact Form 7 Page’:jQuery(‘body’).on(‘click’, ‘.ig_form_container .wpcf7-response-output’, function(e) {
jQuery(e.target).slideUp();
});
// Handle CTA function(s) after successful submission of form
jQuery( window ).on(‘wpcf7:mailsent’, function(e) {
var msg_id = (jQuery(e.target.closest(‘[id^=icegram_message_]’)).attr(‘id’) || ”).split(‘_’).pop() || 0 ;
var ig_msg = icegram.get_message_by_id(msg_id) || undefined;
if(ig_msg && ig_msg.data.cta === ‘form_via_ajax’ && ig_msg.data.cta_option_form_via_ajax == ‘hide_on_success’){
ig_msg.hide();
}
});ReferenceError: icegram is not defined
var ig_msg = icegram.get_message_by_id(msg_id) || undefined;
The topic ‘JavaScript Conflict with plugin 'Contact Form 7'’ is closed to new replies.