PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Forms submitted multiple times - conflict with Simple Facebook Connect

  1. I installed Gravity Forms and every time a form is submitted, it is being sent multiple times. The conflict is with the Simple Facebook Connect "Like" and "Share" buttons. The form gets sent an extra time for each button. IE: if the "like" is active, the form is sent twice; if the "like" and "share" buttons are both active then the form is sent three times.

    I've noticed the same problems with other users on this forum. I contacted the SFC plugin author and here is the response:

    '

    'What this means is that, unfortunately, Gravity Forms is producing the submit when the get_the_content() function is called, which is a no-no. Both like and share have to get the content in the header, to produce the necessary meta tags for Facebook.

    There’s no way around this except to fix Gravity Forms to not do that. Might try contacting the author.'

    '

    Is this something that can be fixed? For now, I've turned it off but I really need to be able to have the share button active.

    Posted 14 years ago on Monday November 15, 2010 | Permalink
  2. We will look into this. This isn't a "no-no" as Otto has said. If anything the way he is getting the content is a "no-no" because when he executes get_the_content() it then executes all of the page content, including any shortcodes, again. So it's executing all of the page content multiple times with his plugging installed.

    The Gravity Forms shortcode is what executes the form action. When get_the_content() is run in the standard WordPress code execution process this is when the shortcode gets parsed and the form action occurs. What the SFC plugins are doing is calling this function again to get the page content for the share/like buttons, so it executes all the shortcodes again.

    We will look into how we can detect if the form is being submitted multiple times on one page load and limit it there. However, we aren't changing how the form executes.

    Posted 14 years ago on Monday November 15, 2010 | Permalink
  3. It appears that changes we made to Gravity Forms v1.5 already fixes this issue. If you wanted to download and install the 1.5 beta it is available on the Downloads page.

    Posted 14 years ago on Monday November 15, 2010 | Permalink
  4. vanderark1
    Member

    I had the same issue. I only used SFC for the LIKE button, thinking originally that I would use others in their suite of plugins.

    I deleted all SFC.

    Does anyone have an option for a LIKE button that doesn't conflict with Gravity Forms?

    Posted 14 years ago on Monday November 15, 2010 | Permalink
  5. Gravity Forms v1.5 should be compatible with the SFC plugins. So you can install the beta or wait for it's final release.

    Posted 14 years ago on Tuesday November 16, 2010 | Permalink