• Resolved eripanci

    (@eripanci)


    Hello there!

    My team has decided that some of our forms need to be multi steps so I started searching for plugins that can do this easily and found that yours was really good.

    One problem though: we load contact forms in modals. We have a list of stores and each store has a button that opens a modal with the form inside it.

    After showing the form HTML, we use wpcf7.init(wpcf7form) to add the cf7 front-end functions in it.

    Is there something similar in your plugin? Because after the form is shown, I try to click the “Next” button but of course, it doesn’t work, since it wasn’t there in the page load to be discovered by your code

    $(document).on("click", ".cf7mls_next", function (event) {

    Thank you!

Viewing 8 replies - 1 through 8 (of 8 total)
  • Hi @eripanci,

    Thanks for reaching out.
    Please allow me to check this with my colleagues and get back soon.

    All the best,
    Rose

    Plugin Support Bruce

    (@ninjateamwp)

    Hi @eripanci ,

    If contact form shows in popup, please change the code below:

    $(document).on("click", ".cf7mls_next", function (event) {

    to:

    $('body').on('click', '.cf7mls_next', function(event) {

    Hope that helps.

    Kind regards,
    Bruce

    Thread Starter eripanci

    (@eripanci)

    Hello there!

    Thank you for your answer, but unfortunately, this is not the solution.

    I figured I missed something in my initial explanation of the problem:

    I don’t have the form in the page load. I get the form with ajax and then show it in the modal, then I init it with wpcf7.init(wpcf7form).

    Plugin Support Bruce

    (@ninjateamwp)

    Hi @eripanci ,

    Please give us the link to that page, so we can check it out.

    Kind regards,
    Bruce

    Thread Starter eripanci

    (@eripanci)

    Plugin Support Bruce

    (@ninjateamwp)

    Hi @eripanci ,

    It seems you have deactivated the plugin?
    Please activate it and we can check.

    Kind regards,
    Bruce

    Thread Starter eripanci

    (@eripanci)

    I have not activated it yet because it’s a production environment, so I can’t.

    I thought you asked for the link to get the idea. I believe now you have all the information for what I need.

    1. There is no form on the initial page load.
    2. I load the form dynamically and show it on the modal. (You can check the Network tab when clicking the “Contact” button)
    3. I initialize the cf7 functions by calling wpcf7.init(wpcf7form) (In this case the wpcf7form is the form element)
    4. Now I have all the cf7 functionalities

    What I need is a function from your plugin that also initializes your plugin’s front-end functionalities.

    Thank you!

    Plugin Support Bruce

    (@ninjateamwp)

    Hi @eripanci ,

    Unfortunately, we are limited to what we can here further.
    To get help, you can reach out to the dev unit here:
    ninjateam.org/support

    Thank you.

    Kind regards,
    Bruce

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Is there something similar like wpcf7.init in your plugin?’ is closed to new replies.