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.

Clearing Confirmation and Showing the Form Again?

  1. I can't seem to figure out how to go about accomplishing this.

    I want to allow the user to click a link to bring up the form again. I'm using and "AJAX" form and currently the confirmation message replaces the form, rather than hiding it. I would like to hide the form and clear / show it (hiding the confirmation) if the user wants to submit again.

    Posted 14 years ago on Tuesday August 31, 2010 | Permalink
  2. Currently this isn't possible as a feature. The only way this could be done is if you used the confirmation redirect and set the Thank You page to be the same page as the page containing your form.

    Posted 14 years ago on Tuesday August 31, 2010 | Permalink
  3. geneticdigital
    Member

    Is this possible yet?

    Posted 11 years ago on Friday June 28, 2013 | Permalink
  4. geneticdigital
    Member

    No idea if this is possible but a quick solution that met my needs:

    jQuery(document).ready(function(){
    	// get the form content
    	$cform = jQuery('#gform_wrapper_1').clone().wrap('<p/>').parent().html();
    
    	jQuery(document).bind('gform_confirmation_loaded', function(){
    		// get returned confirmation message
    		$message = jQuery('#gforms_confirmation_message').html();
    
    		// append message to form content or rewrite or whatever then...
    
    		// replace confirmation with original form
    		jQuery('#gforms_confirmation_message').replaceWith($cform);
    	});
    })
    Posted 11 years ago on Friday June 28, 2013 | Permalink

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