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.

Form button not doing anything

  1. iamcanadian1973
    Member

    I have a form in a layer that popups up.

    http://megadome.mediast.com/

    Its on the left side of the page under the menu, if you click "download your own design guide"

    I click the submit button and nothing happens.

    firebug says nothing. and I honestly have not the foggiest clue how to trouble shoot this so I've come to pleade for some help! :P

    Can someone help me with this? Thanks very much.

    FYI, amazing product, I use it all the time and it has definitely paid for itself many times.

    Posted 12 years ago on Thursday August 4, 2011 | Permalink
  2. Very strange. How have you implemented that popup? Have you tried enabling AJAX?

    Posted 12 years ago on Thursday August 4, 2011 | Permalink
  3. iamcanadian1973
    Member

    The ehad of my page
    gravity_form_enqueue_scripts(2, true);

    The form
    gravity_form(2, $display_title=false, $display_description=true, $display_inactive=false, $field_values=null, $ajax=true);

    the popup works. Its just a hidden div that gets shown or hidden on click.

    I provided a link in my original post.

    Posted 12 years ago on Thursday August 4, 2011 | Permalink
  4. iamcanadian1973
    Member

    Maybe I need to use an iframe? I just couldnt see why if I am using ajax to submit the form.

    I attached an alert to the submit button and it is registering as being clicked.

    Posted 12 years ago on Thursday August 4, 2011 | Permalink
  5. Hi Iamcanadian,

    Try updating this bit of code:

    $("#email_popup").click(function(event){
    		 	event.preventDefault();
    			$('#email_form').show();
    			return false;
    		});

    to this:

    $("#email_popup").click(function(event){
    			$('#email_form').show();
    		});
    Posted 12 years ago on Thursday August 4, 2011 | Permalink
  6. iamcanadian1973
    Member

    thanks,

    that did it.

    Posted 12 years ago on Thursday August 4, 2011 | Permalink
  7. iamcanadian1973
    Member

    How would I reset the form when the layer is closed?

    Posted 12 years ago on Thursday August 4, 2011 | Permalink
  8. iamcanadian1973
    Member

    I'm wondering if someone would be able to answer my last question?

    "How would I reset the form when the layer is closed? "

    Posted 12 years ago on Wednesday August 10, 2011 | Permalink
  9. The easiest way would be to save the form HTML as a global javascript variable when the page is loaded. Then when the layer is closed, you can replace the existing form HTML with the saved HTML. Something like:

    [js]
    var origFormHTML = '';
    jQuery(document).ready(function(){
        origFormHTML = jQuery("#gform_wrapper_2").html();
    }

    And then inside your close event add a line like this:

    [js]
    jQuery("#gform_wrapper_2").html(origFormHTML);

    `

    Posted 12 years ago on Wednesday August 10, 2011 | Permalink