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.

object being cleared on a multipage form

  1. we are loading a flash player using javascript into an HTML block, when the form loads, we can see in the code that the flash player loaded correctly in the hidden div (5th page), once we click to continue using the multipage form, the flash code loaded gets cleared, and the html code from the html block is shown again, instead of the flash player.

    can we do anything to not replace the loaded flash player with the html block code after going to the 2nd and subsequent pages for the multi form?

    thanks

    Posted 12 years ago on Monday February 14, 2011 | Permalink
  2. Is this an AJAX form?
    If so, try using the gform_page_loaded hook to initialize the flash player on the right page.

    <script type="text/javascript">
        jQuery(document).ready(function(){
    
            jQuery(document).bind('gform_page_loaded', function(event, form_id, page_number){
                 if(page_number == 2 && form_id=2)
                     //initialize flash player
            });
    
        })
    </script>
    Posted 12 years ago on Tuesday February 15, 2011 | Permalink
  3. Thanks Alex.

    So i added that code to the header, and changed the page_number to 6 (this is page 6 of the multiform?) and form_id stayed at 2 (2nd form created in WP).

    then were is says //initialize flash player, i put the JS code that embeds the player into the div in our html box?

    if so, then it's not working...

    i also just tried to throw up an alert once we are on that page, and that did not work either.

    anything else i can try? thank you.

    Posted 12 years ago on Tuesday February 15, 2011 | Permalink
  4. Please provide a link to your form where we can view it with your custom code in place so we can take a look.

    Posted 12 years ago on Tuesday February 15, 2011 | Permalink
  5. I found this other post...and i got it to work to just replace the html block content with the object code. Thank you!

    http://www.gravityhelp.com/forums/topic/allow-html-block-to-be-dynamically-populated#post-17224

    Posted 12 years ago on Tuesday February 15, 2011 | Permalink
  6. Good to hear, glad you got it working!

    Posted 12 years ago on Tuesday February 15, 2011 | Permalink

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