Gravitate Gforms API Helper Wordpress Plugin - Rating, Reviews, Demo & Download

Gravitate Gforms API Helper Preview Wordpress Plugin - Rating, Reviews, Demo & Download
5 Average out of 2 ratings
Free
Follow for free plugins, new theme releases and theme news

Plugin Description

Author: Gravitate http://www.gravitatedesign.com

Description: This is Plugin Helper to allow you to easily setup an External API on Gravity Form Submissions. You can link multiple API calls to a single Gravity Form Submission. This does require a Developer to complete the API sections.

How to Use it:
https://wordpress.org/plugins/gravitate-gforms-api-helper/other_notes/

Requirements

  • Gravity Forms Plugin
  • WordPress 3.5 or above

HOW TO USE

Once installed and Activated you will be able to go into your Gravity Forms Settings and Add in a Custom API Call.
Ex. Sales Force
* You can create multiple calls separated by commas

Once you save that field you will now be able to go into a field in the the Form Editor and go the the Advanced Tab and place in the Field Name for the API you named.

Now everytime the form is submitted it will call any actions your create and submit the fields and their values.

To create actions just place the below code in your functions.php file of your theme or in another plugin.
replace {your_api_name} with the sanitized (lowercase with underscores) API name you added to the Form Settings.
Then place your own code in the “Send $data to API Here”.

add_action("ggah_submission_{your_api_name}", "your_function_hook_name_here_{your_api_name}", 10, 3);

function your_function_hook_name_here_{your_api_name} ($data, $form, $api)
{
    $api_failed = false;


    // Send $data to API Here


    // If Api Failed then set $api_failed = true;


    // This will send a Simple Email to the Admin to notify them of the error.
    if($api_failed)
    {
        if(function_exists('ggah_error_notification'))
        {
            $email = '';    // leave blank to use Admin Email
            $subject = '';  // leave blank to use Default
            $message = '';  // leave blank to use Default

            ggah_error_notification($email, $api, $subject, $message);
        }
    }
}

If using multiple calls then duplicate the code and place in your own code accordingly.

Screenshots

  1. Link the form by adding a "Custom API Call". You can have multiple by separating with commas.

    Link the form by adding a “Custom API Call”. You can have multiple by separating with commas.

  2. Select which fields to send. Specify the exact field ID needed by the custom API Call.

    Select which fields to send. Specify the exact field ID needed by the custom API Call.


Reviews & Comments