Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Marin Atanasov

    (@tyxla)

    Hi @colejohnsonline,

    Unfortunately, I was unable to reproduce the issue.

    I’ve tested several times with the following setup:

    * Gravity Forms 1.9.13 (latest version)
    * WordPress 4.2.4 (and 4.3 RC) (latest version and nightly version)
    * Twentyfifteen theme (latest default theme)

    I’ve tested with a page and 3 instances of the same form on the same page.
    I hooked a console.log() on the gform_confirmation_loaded event, and on each form submission it was called only once.

    So I’m not able to reproduce the issue, and I’ll need some more information about the setup that you have when the issue occurs:

    1. What theme are you using?
    2. What version of WordPress are you using?
    3. What version of Gravity Forms are you using?
    4. Do you have any other plugins activated?
    5. Do you have any custom code, built on top of the default functionality?

    Also, it would be very useful if you can provide a public link where I can encounter the issue, and/or perhaps an export of the form that you’re testing with.

    I’d love to help, so I’m looking forward to resolving your issue.

    Regards,
    Marin

    Thread Starter colejohnsonline

    (@colejohnsonline)

    Hi Marin,

    Thank you so much for the help!
    1. Roots Sage theme: https://github.com/roots/sage
    2. Version 4.2.4 (latest)
    3. Version 1.9.13 (latest)
    4. We have many plugins activated, around 20. It’s a very big site with a lot of different functionality going on, so it’s a little tougher to find the issue.
    – Here is a library we are using that I believe may also be related to the clash: Fancybox: http://fancyapps.com/fancybox/
    — We are actually using the WordPress Plugin version: https://wordpress.org/plugins/fancybox-for-wordpress/
    – Here are a few more plugins that are involved: Gravity Forms Duplicate Prevention, Advanced Custom Fields
    5. Yes. I’ll try to explain more in detail what’s going on. Unfortunately, we cannot share a public link.

    We are iterating through every post in a category using:
    “<?php foreach ($pageposts as $post):
    setup_postdata($post); ?>”

    Within this loop we are dynamically generating a Gravity Form as so:
    “<?php gravity_form(24, false, false, false, ”, true, 12); ?>”
    (We have also attempted using a Gravity Form shortcode.)

    So, there are multiple Gravity Forms being generated all using the same form. We are using ID selectors to keep track of the tables and forms and everything is being generated correctly.

    We are displaying this Gravity Form in a Fancybox using AJAX:
    “$(“.fancybox”).fancybox({
    maxWidth : 800,
    maxHeight : 600,
    fitToView : false,
    width : ‘100%’,
    height : ‘70%’,
    autoSize : false,
    closeClick : false,
    openEffect : ‘none’,
    closeEffect : ‘none’
    });”
    which opens a form with the correct ID.

    We have to use unique forms because we are sending a hidden field containing a contract number for which a user is registering. The idea is to let a user register for a specific contract, then use confirmation loaded to manipulate the DOM with jQuery within a specific table, but it is affecting every table. I believe it has to do with the confirmation loaded hook being called for every post because we’ve tested using a simple alert within the hook upon submission.

    The correct form is called because submissions are functioning along with everyone else. There is no duplicate submission even with all fields not required. The only trouble we can find is with this confirmation loaded hook.

    I hope this information helps out! Please let us know if you have any idea of the source or if you need more information.

    Thread Starter colejohnsonline

    (@colejohnsonline)

    Hi,

    I just figured out the issue on our end. We were using the gform_confirmation_loaded filter within the loop and it needed to be outside.

    Thanks again! Great plugin. 🙂

    Plugin Author Marin Atanasov

    (@tyxla)

    Hey 🙂

    Glad you were able to resolve your issue.

    Cheers,
    Marin

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Confirmation Loaded Issue’ is closed to new replies.