<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.0.1" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>Gravity Support Forums User Favorites: softrealty</title>
		<link><a href='https://legacy.forums.gravityhelp.com/profile/softrealty'>softrealty</a></link>
		<description>Gravity Support Forums User Favorites: softrealty</description>
		<language>en-US</language>
		<pubDate>Sat, 04 Apr 2026 12:17:31 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.0.1</generator>
		<textInput>
			<title><![CDATA[Search]]></title>
			<description><![CDATA[Search all topics from these forums.]]></description>
			<name>q</name>
			<link>https://legacy.forums.gravityhelp.com/search.php</link>
		</textInput>
		<atom:link href="https://legacy.forums.gravityhelp.com/rss/profile/" rel="self" type="application/rss+xml" />

		<item>
			<title>David Carroll on "post form data to external handler"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/post-form-data-to-external-handler#post-22110</link>
			<pubDate>Wed, 30 Mar 2011 16:39:41 +0000</pubDate>
			<dc:creator>David Carroll</dc:creator>
			<guid isPermaLink="false">22110@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;@Carl - I just edited my post to do a better job introducing what is being addressed for future readers. &#60;/p&#62;
&#60;p&#62;That said, your suggestion for an Add-on to map existing fields to external APIs is exactly what I was thinking. &#60;/p&#62;
&#60;p&#62;My initial thoughts on this would be for the API Add-on to support the following modules:&#60;br /&#62;
   - Template Library Module (PayPal, eBay, Zillow, Trulia, various CRMs, or Custom)&#60;br /&#62;
   - Protocol Modules (HTTP, SMS, SOAP, Email, Database, etc)&#60;br /&#62;
   - Saved API Configurations (Similar to Forms List where each item specifies the Template, Mapped Fields, and Protocol that are bound together for the current configuration.)&#60;/p&#62;
&#60;p&#62;Additionally, a history of all API Submissions and third-party postbacks could be viewed for each Published API Configuration.&#60;/p&#62;
&#60;p&#62;Obviously, this should start out small with only 1 or 2 supported modules.  However, it could lay the ground work for future efforts to pull in a workflow plugin that would work with these API Submissions and Postbacks.&#60;/p&#62;
&#60;p&#62;In the meantime, the Module approach could give the community the opportunity to contribute various Templates.  For example, real estate agents could start to post listings to sites like Trulia, Zillow, Craiglist.   Online retailers could push products to Google Store, eBay, etc.  You guys are already doing this specifically for Freshbooks and MailChimp. Pushing contacts to any number of CRMs that support Restful API's, such as Heap, SalesForce, HireriseHQ, would probably be popular with users and other companies. &#60;/p&#62;
&#60;p&#62;Anyway, I'm just thinking out loud and this may be more than you care to consider for the plugin.  It's a cool concept non-the-less.&#60;/p&#62;
&#60;p&#62;Thanks,&#60;/p&#62;
&#60;p&#62;David Carroll
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Carl Hancock on "post form data to external handler"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/post-form-data-to-external-handler#post-22094</link>
			<pubDate>Wed, 30 Mar 2011 15:45:00 +0000</pubDate>
			<dc:creator>Carl Hancock</dc:creator>
			<guid isPermaLink="false">22094@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;@David i'll have Alex, our lead developer, take a look and give his input.  It may be a little bit before he does so, maybe not until later this week when he can digest this post, etc.  &#60;/p&#62;
&#60;p&#62;We actually would like to create an Add-On that allows you to easily post data to an external handler as part of the form submission process and do exactly what you outlined as far as mapping fields.  You'd select fields and map them to what name it should post as to the external handler.  So it is something we'd like to create an official Add-On, or work with a 3rd party developer to create it.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>David Carroll on "post form data to external handler"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/post-form-data-to-external-handler#post-22092</link>
			<pubDate>Wed, 30 Mar 2011 15:32:47 +0000</pubDate>
			<dc:creator>David Carroll</dc:creator>
			<guid isPermaLink="false">22092@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;*** NOTE: FOR DEVELOPERS ONLY ***&#60;br /&#62;
Andy,&#60;/p&#62;
&#60;p&#62;It took me a while to figure out how to solve the problem you asked about.  Basically, you wanted to know if there was a way to retrieve values via code from the $entry array without having prior knowledge of the numeric input id's used as array keys.  &#60;/p&#62;
&#60;p&#62;For Example:&#60;br /&#62;
The value for the Phone Number field from a posted GForm might be retrieved with the following line:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;$phone = $entry[19];&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;However, you would need to have prior knowledge that 19 is the id for accessing the phone number field for this GForm.  You would prefer to access the value submitted for Phone Number with the following line:&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;$phone = $entry[&#38;#39;phone&#38;#39;];&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Perhaps the GravityForms guys can give some insight on this. Since I'm reviewing the GF plugin code to better understand the architecture for another plugin I want to create, I decided to take a stab at this.&#60;/p&#62;
&#60;p&#62;Please review the new helper functions I created and the rest of this post to see how I was able to accomplish what you were looking for.&#60;/p&#62;
&#60;p&#62;View New Code Page: &#60;a href=&#34;http://www.pastie.org/1736319&#34; rel=&#34;nofollow&#34;&#62;http://www.pastie.org/1736319&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;**** DISCLAIMER ****&#60;br /&#62;
You will need to review this entire post to understand how to configure your GForm settings for this code to work. This code is provided AS-IS, works on my server and specific environment settings, uses id's based on my GravityForms setup, and may change if an update is made to the GF Plugin.&#60;br /&#62;
*************************&#60;/p&#62;
&#60;p&#62;That said, I did add a lot of code comments and this very detailed post to help you modify the helper for your own use. While all the code is on one file, I recommend moving some of these methods to common locations as appropriate.  You could also consider moving some of these fragments into their own namespaces. &#60;/p&#62;
&#60;p&#62;** Improvement: LogConsole **&#60;br /&#62;
One major improvement in this updated code is you don't have to comment out all the LogConsole() lines.  There are security and context checks in place now that will only run those logs if being called from debug-bar-console plugin as the site super admin.&#60;/p&#62;
&#60;p&#62;** Setup Your GForm to Work with Test **&#60;br /&#62;
To get started, you'll need to do a few things on your GF configurations first:&#60;/p&#62;
&#60;p&#62;1. GF User Registration Plugin is required. Make sure this is installed.&#60;/p&#62;
&#60;p&#62;2. Go to Form Editor for the form you want to test.&#60;br /&#62;
    - Make sure you have fields for the following:&#60;br /&#62;
       - Username&#60;br /&#62;
       - Site Name&#60;br /&#62;
       - First Name&#60;br /&#62;
       - Last Name&#60;br /&#62;
       - Email Address&#60;br /&#62;
       - Phone Number&#60;/p&#62;
&#60;p&#62;Apply update to the GForm.&#60;/p&#62;
&#60;p&#62;3. Locate GForm form_id&#60;br /&#62;
Take note of the form_id for this GForm. You can get this from the Form List Page. It's also in the querystring when viewing in the Form Editor as form_id.  If your form_id is not 1, then you'll need to update the test method:&#60;br /&#62;
   - BuildMockEntryArray( $form_id = 1 , [... other params .. ]) { }&#60;br /&#62;
     Replace 1 with the ID that matches your form.&#60;/p&#62;
&#60;p&#62;4. Go to GF User Registration Settings Page:&#60;br /&#62;
    - Edit the User Registration Settings you want to test this GForm with. Create a new one if you don't already have one created.&#60;br /&#62;
    - Select the GForm you want to use.&#60;br /&#62;
    - Map the following Standard Fields:&#60;br /&#62;
       - Username&#60;br /&#62;
       - First Name&#60;br /&#62;
       - Last Name&#60;br /&#62;
       - Email Address&#60;br /&#62;
    - Create 2 new Custom User Meta Settings:&#60;br /&#62;
       - Site Name&#60;br /&#62;
       - Phone&#60;br /&#62;
         NOTE: Use the names for this test exactly as you see them. This is case sensitive.&#60;br /&#62;
    - Map these values to your GForm Fields.&#60;br /&#62;
   - Save your changes.&#60;/p&#62;
&#60;p&#62;** Debug-Bar-Console Test will Only Work From Page Hosting GForm **&#60;br /&#62;
1. Testing this with debug-bar-console must be done on a page that has a reference to this GForm.  &#60;/p&#62;
&#60;p&#62;2. You must also be logged in as the site super admin. Add the GForm to a new page and go to the page in view mode.&#60;/p&#62;
&#60;p&#62;3. From the page hosting the GForm, open debug-bar-console plugin&#60;br /&#62;
and Run the following line:&#60;/p&#62;
&#60;p&#62;    GFHeapTestHarness();&#60;/p&#62;
&#60;p&#62;** Reviewing the Log Output: **&#60;br /&#62;
1. To verify numeric keys are matched to friendly named keys, locate the first Array in the output window:&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;GetGFormEntryKeys() - $entry_keys::Array
(
    [username] =&#38;gt; 4
    [firstname] =&#38;gt; 1.3
    [lastname] =&#38;gt; 1.6
    [email] =&#38;gt; 2
    [Site Name] =&#38;gt; 3
    [Phone] =&#38;gt; 19
)&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;This log message shows the code was able to dynamically match the numeric keys with the friendly name.  &#60;/p&#62;
&#60;p&#62;2. To verify your code retrieved posted content without prior knowledge of the field id's, locate the following logs near the bottom of the output window:&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;prepare_for_heap() - $leaddata::Array
(
    [create] =&#38;gt; lead
    [name] =&#38;gt; Bobby Boucher
    [phone] =&#38;gt; 555-555-5555
    [email] =&#38;gt; &#60;a href=&#34;mailto:bobby@ilovedafootball.com&#34;&#62;bobby@ilovedafootball.com&#60;/a&#62;
)
Test key: Site Name::waterboy_movie
Test key: Phone::555-555-5555&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;This log message shows the values were able to be retrieved from $entry without knowing the numeric keys ahead of time. All you need to know are the User Meta Setting names. &#60;/p&#62;
&#60;p&#62;If there are any errors or if data isn't being loaded, review the default array values in BuildMockEntryArray() and verify $form_id matches the current GForm form_id.&#60;/p&#62;
&#60;p&#62;** Where Can We Go From Here **&#60;br /&#62;
I plan on converting this into a mapping plugin that will also attempt to map input id's to the [Admin Label] Setting in the Advanced Tab of each field on a form.  This should be fairly easy and only require changing the function GetGFormEntryKeys() so it loads the GForm settings for the specified form_id.&#60;/p&#62;
&#60;p&#62;Another option would be to create a dedicated mapping page for developers to use specifically for this purpose. I could then create a class that extend the $entry array and provides the named keys for server side data mapping.&#60;/p&#62;
&#60;p&#62;** Thoughts from GF Team **&#60;br /&#62;
Whew... that was a lot to present.  Perhaps the GravityForms team can confirm if there is a more native way to do this via the current code base.  At the very least, I've learned a lot about how GForm is setup and works.&#60;/p&#62;
&#60;p&#62;Thanks,&#60;/p&#62;
&#60;p&#62;David Carroll
&#60;/p&#62;</description>
		</item>
		<item>
			<title>iandymorris on "post form data to external handler"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/post-form-data-to-external-handler#post-21927</link>
			<pubDate>Tue, 29 Mar 2011 10:36:15 +0000</pubDate>
			<dc:creator>iandymorris</dc:creator>
			<guid isPermaLink="false">21927@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;thanks softrealty... &#60;/p&#62;
&#60;p&#62;i got it working thanks to your debug...  for anyone else who wants to get gravity forms working with heap here is the plugin code... just upload in a php file in a subdirectry of plugins&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://www.pastie.org/1731116&#34; rel=&#34;nofollow&#34;&#62;http://www.pastie.org/1731116&#60;/a&#62; &#60;/p&#62;
&#60;p&#62;you know what the problem was??? i was referencing the wrong gravity form field id... o.k. one other question... is there a way to reference field name instead of field id number in this?  that way i can make this a universal script for various forms that i create and they all get sent to heap crm even if they have varying field id's.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>iandymorris on "post form data to external handler"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/post-form-data-to-external-handler#post-21925</link>
			<pubDate>Tue, 29 Mar 2011 10:12:46 +0000</pubDate>
			<dc:creator>iandymorris</dc:creator>
			<guid isPermaLink="false">21925@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;wow... thanks so much... amazing what you can figure out when you log stuff and see what is going out... thanks again!!!!&#60;/p&#62;
&#60;p&#62;no what the problem was???  it was simply that i wasn't referencing proper field id's... is there a better way to get the field id other than to look it up in the source code of the form?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>iandymorris on "post form data to external handler"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/post-form-data-to-external-handler#post-21920</link>
			<pubDate>Tue, 29 Mar 2011 09:20:34 +0000</pubDate>
			<dc:creator>iandymorris</dc:creator>
			<guid isPermaLink="false">21920@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;holy shit... i really am a noob... that debug script you ran just posted 10 bob the waterboys to the crm... i guess changing the password doesn't matter the... hook must not require a good password... :) funny... thanks... well if your debug script works... i am not to far off.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>David Carroll on "post form data to external handler"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/post-form-data-to-external-handler#post-21914</link>
			<pubDate>Tue, 29 Mar 2011 07:33:31 +0000</pubDate>
			<dc:creator>David Carroll</dc:creator>
			<guid isPermaLink="false">21914@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Andy, &#60;/p&#62;
&#60;p&#62;Another way to test your code is to use the developer WordPress Plugins listed below:&#60;/p&#62;
&#60;p&#62;  - &#60;a href=&#34;http://wordpress.org/extend/plugins/debug-bar/&#34; rel=&#34;nofollow&#34;&#62;http://wordpress.org/extend/plugins/debug-bar/&#60;/a&#62;&#60;br /&#62;
  - &#60;a href=&#34;http://wordpress.org/extend/plugins/debug-bar-console/&#34; rel=&#34;nofollow&#34;&#62;http://wordpress.org/extend/plugins/debug-bar-console/&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;I modified your original script with some logging hooks to demonstrate how to use this plugin when debugging your code.&#60;/p&#62;
&#60;p&#62;   - &#60;a href=&#34;http://pastie.org/1730484&#34; rel=&#34;nofollow&#34;&#62;http://pastie.org/1730484&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;Follow my detailed notes in the header of this script and hopefully they'll make sense.  &#60;/p&#62;
&#60;p&#62;Just remember to deactivate these plugins when you are not testing your code.&#60;/p&#62;
&#60;p&#62;Best Regards,&#60;/p&#62;
&#60;p&#62;David Carroll
&#60;/p&#62;</description>
		</item>
		<item>
			<title>David Carroll on "post form data to external handler"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/post-form-data-to-external-handler#post-21913</link>
			<pubDate>Tue, 29 Mar 2011 06:12:58 +0000</pubDate>
			<dc:creator>David Carroll</dc:creator>
			<guid isPermaLink="false">21913@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;*** PROPOSED SOLUTION ***&#60;/p&#62;
&#60;p&#62;Andy - Your code indicates you are posting to a secure (https) url. I just resolved a similar issue with the GF PayPal Plugin posting a secure site from my development test server.  &#60;/p&#62;
&#60;p&#62;I posted a solution to my issue in the following link:&#60;br /&#62;
  - &#60;a href=&#34;http://www.gravityhelp.com/forums/topic/solution-to-an-issue-i-had-with-http-posts-to-paypal&#34; rel=&#34;nofollow&#34;&#62;http://www.gravityhelp.com/forums/topic/solution-to-an-issue-i-had-with-http-posts-to-paypal&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;While I explain a solution that worked for me, your situation is much different in that you are explicitly using the CURL API to post your data. My situation involved using the WP_Http class.&#60;/p&#62;
&#60;p&#62;A quick way to test if your issue is related to the CA Cert, add the following CURL Options to the code you shared on: &#60;a href=&#34;http://pastie.org/1729536&#34; rel=&#34;nofollow&#34;&#62;http://pastie.org/1729536&#60;/a&#62;&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
 curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;**** WARNING: DO NOT USE THE ABOVE SETTINGS FOR GENERAL Production Purposes. This basically disables the SSL verification altogether. ****&#60;/p&#62;
&#60;p&#62;If this test allows you to successfully send your HTTP Post, then complete the following steps to resolve this issue:&#60;/p&#62;
&#60;p&#62;1. Remove the test CURL Options from your code.&#60;/p&#62;
&#60;p&#62;1. Download a recent CA cert to your webserver from: &#60;a href=&#34;http://curl.haxx.se/docs/caextract.html&#34; rel=&#34;nofollow&#34;&#62;http://curl.haxx.se/docs/caextract.html&#60;/a&#62;.  The direct download link is: &#60;a href=&#34;http://curl.haxx.se/ca/cacert.pem&#34; rel=&#34;nofollow&#34;&#62;http://curl.haxx.se/ca/cacert.pem&#60;/a&#62;.&#60;/p&#62;
&#60;p&#62;2. If running WordPress on Windows, you can change the extension from .pen to .crt.&#60;/p&#62;
&#60;p&#62;3. Add the following lines to your code:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 1);
curl_setopt($ch, CURLOPT_CAINFO, &#38;#39;E:\enter\your\path\to\cacert.crt&#38;#39;);&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Let me know if this got you past your current issues.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>iandymorris on "post form data to external handler"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/post-form-data-to-external-handler#post-21906</link>
			<pubDate>Tue, 29 Mar 2011 00:39:08 +0000</pubDate>
			<dc:creator>iandymorris</dc:creator>
			<guid isPermaLink="false">21906@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;David... i made a plugin to wordpress and uploaded it... &#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://pastie.org/1729536&#34; rel=&#34;nofollow&#34;&#62;http://pastie.org/1729536&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;I also tried the same code in function.php.  Neither seemed to work.  What would be the best way to confirm that the data from the form is coming through?  I posted on the heap forums to see if ben the owner/ developer can figure out what errors i made on the heap side...
&#60;/p&#62;</description>
		</item>
		<item>
			<title>iandymorris on "post form data to external handler"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/post-form-data-to-external-handler#post-21891</link>
			<pubDate>Mon, 28 Mar 2011 22:01:43 +0000</pubDate>
			<dc:creator>iandymorris</dc:creator>
			<guid isPermaLink="false">21891@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;thanks...
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
