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.

Calling a form with ajax

  1. Dinwebb
    Member

    Hi,
    I'm building a WordPress site that loading the content with ajax and wounder how I get ajax on gravityforms to work?
    Is there a js function I can call?

    I use jquery load and http://www.asual.com/jquery/address/

    Posted 13 years ago on Tuesday January 25, 2011 | Permalink
  2. Hi Dinwebb,

    There is no javascript function that allows you to "call" a Gravity Form via ajax; however, when embedding a form on a page there is an option available to "submit" the form via ajax. Take a look at the shortcode builder and you will see a checkbox to enable this.

    Posted 13 years ago on Tuesday January 25, 2011 | Permalink
  3. Dinwebb
    Member

    I'm calling a page that contains a form with ajax so I got the form but I need someway to activate the forms ajax function.
    When the form is loaded in later the ajax functions aren't binded to it.

    Posted 13 years ago on Thursday January 27, 2011 | Permalink
  4. Patrik,
    What exact AJAX functions aren't working when you load the form this way?
    The pricing fields (for version 1.5) and date picker can be initialized with the following functions.

    gformInitDatepicker();
    gformInitPriceFields();

    Posted 13 years ago on Tuesday February 1, 2011 | Permalink