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.

gform_confirmation_loaded on multiple forms on one page

  1. Hi,
    I am trying to use the gform_confirmation_loaded function/script (http://www.gravityhelp.com/documentation/page/Gform_confirmation_loaded) with multiple forms on a single page. Somehow I can't manage to get it to work with parameters. Could some1 give an example of how the function utilizes the parameters / how I can set one .bind to one form, instead of it working with any form?
    So far I have:

    <script type="text/javascript">
        jQuery(document).ready(function(){
            jQuery(document).bind('gform_confirmation_loaded_6', function(){
                $("#hidden-form-7").css("visibility", "visible");
            });
        })
    </script>
    AND
    <script type="text/javascript">
        jQuery(document).ready(function(){
            jQuery(document).bind('gform_confirmation_loaded', function(){
                $("#hidden-form-7").css("visibility", "visible");
            });
        })
    </script>

    Which works, but unhides both, since both are bound to the gform_confirmation_loaded.
    I tried gform_confirmation_loaded_5 , which doesnt work, and donno what to write here as a Event handler:
    jQuery(document).bind('gform_confirmation_loaded', function( ???, 5 ){

    All help is appreciated

    PAGE: http://launch0812pre.stablish.me

    Posted 11 years ago on Friday July 6, 2012 | Permalink
  2. Hi James,

    I've updated the documentation with an additional example which shows you how to run different code based on which form's confirmation is being loaded.

    http://www.gravityhelp.com/documentation/page/Gform_confirmation_loaded#Examples

    Posted 11 years ago on Friday July 6, 2012 | Permalink
  3. You just saved the day... thank you!

    Posted 11 years ago on Friday July 6, 2012 | Permalink
  4. Daveman, the Caveman - is the Man!

    Posted 11 years ago on Friday July 6, 2012 | Permalink

This topic has been resolved and has been closed to new replies.