<?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 Topic: Vertical Response - got a cURL set-up working with a GF hook</title>
		<link>https://legacy.forums.gravityhelp.com/topic/vertical-response-got-a-curl-set-up-working-with-a-gf-hook</link>
		<description>Gravity Support Forums Topic: Vertical Response - got a cURL set-up working with a GF hook</description>
		<language>en-US</language>
		<pubDate>Sun, 19 Apr 2026 17:24:37 +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/topic/vertical-response-got-a-curl-set-up-working-with-a-gf-hook" rel="self" type="application/rss+xml" />

		<item>
			<title>David Peralty on "Vertical Response - got a cURL set-up working with a GF hook"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/vertical-response-got-a-curl-set-up-working-with-a-gf-hook#post-323376</link>
			<pubDate>Fri, 14 Jun 2013 13:50:41 +0000</pubDate>
			<dc:creator>David Peralty</dc:creator>
			<guid isPermaLink="false">323376@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;We aren't taking any greatness away, but we can't do every add-on for every service. We just don't have the resource to release them at a quality level we would be happy with. The community has access to everything they need to make add-ons, and there are over 50 already on the WordPress Plugins Extend.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>freedog on "Vertical Response - got a cURL set-up working with a GF hook"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/vertical-response-got-a-curl-set-up-working-with-a-gf-hook#post-323323</link>
			<pubDate>Fri, 14 Jun 2013 13:18:33 +0000</pubDate>
			<dc:creator>freedog</dc:creator>
			<guid isPermaLink="false">323323@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;is there ever going to be a plug in for this.. I didn't get gravity form to code.. it's simple to use that is what makes it great.. please don't take the greatness away..
&#60;/p&#62;</description>
		</item>
		<item>
			<title>red on "Vertical Response - got a cURL set-up working with a GF hook"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/vertical-response-got-a-curl-set-up-working-with-a-gf-hook#post-86287</link>
			<pubDate>Thu, 01 Nov 2012 14:22:30 +0000</pubDate>
			<dc:creator>red</dc:creator>
			<guid isPermaLink="false">86287@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;You can access the form data with the array $form, and the fields specifically with $form['fields'].&#60;/p&#62;
&#60;p&#62;Then you could do a loop through each field and look for type=email.&#60;/p&#62;
&#60;p&#62;Here is the output of just $form['fields'][8] which is the email field in a form I'm using.&#60;/p&#62;
&#60;p&#62;adminLabel =&#38;gt;&#60;br /&#62;
adminOnly =&#38;gt;&#60;br /&#62;
allowsPrepopulate =&#38;gt;&#60;br /&#62;
defaultValue =&#38;gt;&#60;br /&#62;
description =&#38;gt;&#60;br /&#62;
content =&#38;gt;&#60;br /&#62;
cssClass =&#38;gt; gf_left_half&#60;br /&#62;
errorMessage =&#38;gt;&#60;br /&#62;
id =&#38;gt; 9&#60;br /&#62;
inputName =&#38;gt;&#60;br /&#62;
isRequired =&#38;gt; 1&#60;br /&#62;
label =&#38;gt; Email&#60;br /&#62;
noDuplicates =&#38;gt;&#60;br /&#62;
size =&#38;gt; medium&#60;br /&#62;
type =&#38;gt; email&#60;br /&#62;
postCustomFieldName =&#38;gt;&#60;br /&#62;
displayAllCategories =&#38;gt;&#60;br /&#62;
displayCaption =&#38;gt;&#60;br /&#62;
displayDescription =&#38;gt;&#60;br /&#62;
displayTitle =&#38;gt;&#60;br /&#62;
inputType =&#38;gt;&#60;br /&#62;
rangeMin =&#38;gt;&#60;br /&#62;
rangeMax =&#38;gt;&#60;br /&#62;
calendarIconType =&#38;gt;&#60;br /&#62;
calendarIconUrl =&#38;gt;&#60;br /&#62;
dateType =&#38;gt;&#60;br /&#62;
dateFormat =&#38;gt;&#60;br /&#62;
phoneFormat =&#38;gt;&#60;br /&#62;
addressType =&#38;gt;&#60;br /&#62;
defaultCountry =&#38;gt;&#60;br /&#62;
defaultProvince =&#38;gt;&#60;br /&#62;
defaultState =&#38;gt;&#60;br /&#62;
hideAddress2 =&#38;gt;&#60;br /&#62;
hideCountry =&#38;gt;&#60;br /&#62;
hideState =&#38;gt;&#60;br /&#62;
inputs =&#38;gt;&#60;br /&#62;
nameFormat =&#38;gt;&#60;br /&#62;
allowedExtensions =&#38;gt;&#60;br /&#62;
captchaType =&#38;gt;&#60;br /&#62;
page_number =&#38;gt;&#60;br /&#62;
captchaTheme =&#38;gt;&#60;br /&#62;
simpleCaptchaSize =&#38;gt;&#60;br /&#62;
simpleCaptchaFontColor =&#38;gt;&#60;br /&#62;
simpleCaptchaBackgroundColor =&#38;gt;&#60;br /&#62;
failed_validation =&#38;gt;&#60;br /&#62;
productField =&#38;gt;&#60;br /&#62;
enablePasswordInput =&#38;gt;&#60;br /&#62;
maxLength =&#38;gt;&#60;br /&#62;
enablePrice =&#38;gt;&#60;br /&#62;
basePrice =&#38;gt;&#60;br /&#62;
calculationFormula =&#38;gt;&#60;br /&#62;
calculationRounding =&#38;gt;&#60;br /&#62;
enableCalculation =&#38;gt;&#60;br /&#62;
disableQuantity =&#38;gt;&#60;br /&#62;
inputMask =&#38;gt;&#60;br /&#62;
inputMaskValue =&#38;gt;&#60;br /&#62;
formId =&#38;gt; 3&#60;br /&#62;
pageNumber =&#38;gt; 1&#60;br /&#62;
descriptionPlacement =&#38;gt; below&#60;br /&#62;
validation_message =&#38;gt;&#60;br /&#62;
9&#60;br /&#62;
adminLabel =&#38;gt;&#60;br /&#62;
adminOnly =&#38;gt;&#60;br /&#62;
allowsPrepopulate =&#38;gt;&#60;br /&#62;
defaultValue =&#38;gt;&#60;br /&#62;
description =&#38;gt;&#60;br /&#62;
content =&#38;gt;&#60;br /&#62;
cssClass =&#38;gt; gf_right_half&#60;br /&#62;
errorMessage =&#38;gt; &#60;/p&#62;
&#60;p&#62;So maybe something like:&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;if(is_array($form[&#38;#39;fields&#38;#39;])){
        foreach($form[&#38;#39;fields&#38;#39;] as $key=&#38;gt;$fieldinfo){
            foreach($fieldinfo as $key2=&#38;gt;$fielddata){
                if($key2==&#38;#39;type&#38;#39; &#38;amp;&#38;amp; $fielddata==&#38;#39;email&#38;#39;){
                    $gf_field_id_email = $fieldinfo[&#38;#39;id&#38;#39;];
                }
            }
        }
    }&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;and then you can access the entry data (email address) with this:&#60;br /&#62;
&#60;code&#62;$entry[$gf_field_id_email]&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;Hope this helps!
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "Vertical Response - got a cURL set-up working with a GF hook"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/vertical-response-got-a-curl-set-up-working-with-a-gf-hook#post-80014</link>
			<pubDate>Wed, 10 Oct 2012 07:47:52 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">80014@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I don't see any contact information on red's public profile page, so I will leave this open in case anyone has any suggestions for extending the custom functionality to make it more generic.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Mike Clark on "Vertical Response - got a cURL set-up working with a GF hook"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/vertical-response-got-a-curl-set-up-working-with-a-gf-hook#post-79988</link>
			<pubDate>Wed, 10 Oct 2012 06:07:10 +0000</pubDate>
			<dc:creator>Mike Clark</dc:creator>
			<guid isPermaLink="false">79988@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Thanks also from me! I'm using this now and it works a treat. &#60;/p&#62;
&#60;p&#62;Does anyone know how we could grab the gform fields by name (rather than hardcoding IDs from a particular form) so that this same function could be used across many different forms?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "Vertical Response - got a cURL set-up working with a GF hook"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/vertical-response-got-a-curl-set-up-working-with-a-gf-hook#post-77761</link>
			<pubDate>Fri, 28 Sep 2012 00:29:21 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">77761@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Thank you for this post.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>red on "Vertical Response - got a cURL set-up working with a GF hook"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/vertical-response-got-a-curl-set-up-working-with-a-gf-hook#post-77739</link>
			<pubDate>Thu, 27 Sep 2012 21:19:20 +0000</pubDate>
			<dc:creator>red</dc:creator>
			<guid isPermaLink="false">77739@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Wasn't able to post to the existing Vertical Response post, so opened a new one. This isn't a plugin add-on, so not super elegant and requires a little more sleuthing in your own set-up, but is working for us using cURL.&#60;/p&#62;
&#60;p&#62;I used the cURL part of this solution about a year ago, inspired by this information:&#60;br /&#62;
&#60;a href=&#34;http://www.focal55.com/blog/vertical-response-tutorial-auto-submit-contact-information&#34; rel=&#34;nofollow&#34;&#62;http://www.focal55.com/blog/vertical-response-tutorial-auto-submit-contact-information&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;To integrate that into a Gravity Form, wrote a function that can be added to the theme functions.php file and used by the GF post submission hook:&#60;br /&#62;
&#60;a href=&#34;http://www.gravityhelp.com/documentation/page/Gform_post_submission&#34; rel=&#34;nofollow&#34;&#62;http://www.gravityhelp.com/documentation/page/Gform_post_submission&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;Things you need to know to make this work:&#60;br /&#62;
* Your Vertical Response form id&#60;br /&#62;
* Gravity Form field ids (findable in the blue title bar of each field when editing your form)&#60;/p&#62;
&#60;p&#62;Add this function to your theme's functions.php file:&#60;br /&#62;
&#60;a href=&#34;http://pastebin.com/M5KMtYUA&#34; rel=&#34;nofollow&#34;&#62;http://pastebin.com/M5KMtYUA&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;Notes:&#60;br /&#62;
* You don't have to send all of the gf fields to VR, just put the ones you want in the $postFields&#60;br /&#62;
* The gravity form (gf) fields that you're wanting to post to VR need to match up to fields in a VR opt-in form&#60;br /&#62;
* Just because you have xyz field in your VR general field list doesn't mean it will take it from your gf. The VR opt-in form has to have the fields you want to post to in it or it will cause an invalid form error from VR&#60;br /&#62;
* If it's successfully posting with cURL but not showing up in VR (check the $response form output and post - might be an invalid form error)- you may need to make a new opt-in form instead of using an existing one&#60;br /&#62;
* The gf field ids need to be in quotes when defined if you reference something like a checkbox: $gf_field_id_optin = '11.1'; &#60;/p&#62;
&#60;p&#62;If you work out an improvment to this or have a better approach, please share!&#60;/p&#62;
&#60;p&#62;Thanks!
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
