Method Community


Gravity Forms / PHP Example Code

Last post 11-21-2017 8:32 PM by GroGreen. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 02-05-2016 3:16 PM

    Gravity Forms / PHP Example Code

    I was having trouble myself finding any fully working examples of the Method API in PHP or, better yet, a PHP example that was integrating data from a WordPress Gravity Forms form into the API call.  I've figured it out and thought I'd post in case others found themselve in a similar situation.

    I ended up using nusoap:

    In my situation, I have a form on a WordPress site using a Gravity Forms form.  I wanted to continue using the GF functionality, but to also submit directly to my client's Method account.  I am not sure if this is the case for everyone, but for new customer leads I needed to insert an entry in the Customer table as well as the Contacts table.  The unique identifier for both is the full name (or "Name" in my example).    

    You can find my code here:

  • 11-21-2017 8:32 PM In reply to

    Re: Gravity Forms / PHP Example Code

    Hey there,

    Thanks for the info. I'm going down this path now as we're moving from Joomla to WordPress.

    Do the nusoap files get installed to the function.php directory? Does your code detect the gravity form submission or is there something I would need to put into the form?

    Thanks for the help with this!! 

Page 1 of 1 (2 items)