kreas
Forum Replies Created
-
You have that error because the script is called before the function is available, but I can’t tell you why, sorry.
I do not know the tracking code manager plugin. If it let you add the code in the footer or after jquery is inialized, yes, you can use that plugin.
See for example: Elementor custom code functionality
Location: body end
https://elementor.com/help/custom-code-pro/Hello cmarcoofficial,
you can try to add this snipped of js code.
This work for me.
You had to add it after jquery is inizialized.//https://github.com/elementor/elementor/issues/7798
//https://conditional-fields-cf7.bdwm.be/docs/troubleshooting/does-not-work-with-a-third-party-theme-or-plugin/#popups
//Re-initializa CF7 form js to work in E popup
jQuery( document ).on( ‘elementor/popup/show’, ( event, id, instance ) => {
jQuery( ‘.elementor-popup-modal form.wpcf7-form:not(.elementor)’ ).each( ( index, formElement ) => {
// store from i
$cf7From = jQuery( formElement );
// re-init for cf7 form.
wpcf7.initForm( $cf7From );
wpcf7cf.initForm($cf7From);
// add class to avoid running again
$cf7From.addClass( ‘elementor’ );
} );
} );`Solved.
In this page of the CF Conditional plugin https://conditional-fields-cf7.bdwm.be/docs/troubleshooting/does-not-work-with-a-third-party-theme-or-plugin/#popupsit is explained how to re initialize the plugin js.
Just after this
wpcf7.initForm( $cf7From );
Add this
wpcf7cf.initForm($cf7From);Hope it’s help someone
According with this github https://github.com/elementor/elementor/issues/7798
in Elementor Pro 2.7 we added popup events so you can initialize JavaScript-based elements when a popup is shown like CF7 forms, ex:
jQuery( document ).on( ‘elementor/popup/show’, ( event, id, instance ) => {
jQuery( ‘.elementor-popup-modal form.wpcf7-form:not(.elementor)’ ).each( ( index, formElement ) => {
// store from i
$cf7From = jQuery( formElement );
// re-init for cf7 form.
wpcf7.initForm( $cf7From );
// add class to avoid running again
$cf7From.addClass( ‘elementor’ );
} );
} );to read more about popup events:
https://developers.elementor.com/elementor-pro-2-7-popup-events/I’ve a CF7 in a Elementor popup and adding this code, the form went correctly sent.
These is a way to re-initialize, in the same way, the conditional form plugin JS ?
Thanks
Ciao Nicola,
grazie per aver individuato il problema!!!
Grazie alla tua segnalazione ho aggiunto un misero spazio nel codice php del plugin del calendario, così da risolvere.
Segnalo la correzione allo sviluppatore del plugin, ma nel caso servisse a qualcun altro, la correzione da fare è nel file:
/includes/base/calendar/class-calendar-outputter.php
riga #169
aggiungere uno spazio prima dell’ultimo apice.
$calendar_html_data = ‘data-id=”‘ . $this->calendar->get(‘id’) . ‘” ‘;Nicola, ancora grazie per il preziossimo supporto!
Ciao Nicola,
grazie per la risposta.
Nell’error_log nulla, purtroppo.
Qui puoi trovare i due pen https://codepen.io/gokreas/#Stefano