• I use the Character Count option from Contact Form 7. It stopps working as soon as AJAX is loading the web page. That means, the Character Count option does not work any more – except I de-activate AJAX.

    So I need to make sure that the js/plugins is being redrawn/recalled when Ajax is loading.

    I know where I need to init the plug-in (main.js) but I do not know how to init the Contact Form 7 plugin correctly in order to make it work properly with AJAX – side by side. Any advice on this? Thanks in advance. Danny

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Takayuki Miyoshi

    (@takayukister)

    Where can we see the website?

    Thread Starter danny12cros

    (@danny12cros)

    The Website is https://dj58.ch/kontakt/

    Please note: In order to have the options of Contact Form working (count character) I de-activated AJAX. Count character is working as expected. As soon as I activate AJAX, the options do not work any more. Except I reload the page manually.

    If you want me to activate AJAX, just tell me. Thanks for your support.

    Plugin Author Takayuki Miyoshi

    (@takayukister)

    How did you deactivate AJAX?

    Thread Starter danny12cros

    (@danny12cros)

    This is an option in the template. You can toggle on/off the AJAX option. It’s turned off for now so that we can use the date picker and the character count for text fields as expected.

    If I toggle the option on in the template, then the character count does not work anymore as well as the other options such as the date picker. But as soon as you reload the page while the AJAX is on, then it works as designed. But you cannot expect to have reload the page manually all the time.

    It must be done automatically after AJAX has loaded. I found out that that the piece of function can be be integrated in the js/main.js. But I cannot figure out how the function for contact form 7 resp. character count must be texted in order to work.

    Plugin Author Takayuki Miyoshi

    (@takayukister)

    OK. It is the theme’s problem. Try switching theme to the default one (Twenty Nineteen or Twenty Seventeen) and deactivating all plugins that come with the theme.

    Thread Starter danny12cros

    (@danny12cros)

    Actually, all I need to do is to init the Contact Form 7 plug-in in the template that I use. As soon as AJAX from the template has completed to load, I need to have the Contact Form 7 plug-in reloaded again, then it should work. I tried to use ‘initContactForm().’ … you name it, but it doesn’t seem to be right code.

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘init Contact Form 7’ is closed to new replies.