<?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: Getting all Lead (entry) data submitted within gform_validation</title>
		<link>https://legacy.forums.gravityhelp.com/topic/getting-all-lead-entry-data-submitted-within-gform_validation</link>
		<description>Gravity Support Forums Topic: Getting all Lead (entry) data submitted within gform_validation</description>
		<language>en-US</language>
		<pubDate>Sat, 04 Apr 2026 18:18:50 +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/getting-all-lead-entry-data-submitted-within-gform_validation" rel="self" type="application/rss+xml" />

		<item>
			<title>sc0ttkclark on "Getting all Lead (entry) data submitted within gform_validation"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/getting-all-lead-entry-data-submitted-within-gform_validation#post-44752</link>
			<pubDate>Wed, 21 Dec 2011 19:56:48 +0000</pubDate>
			<dc:creator>sc0ttkclark</dc:creator>
			<guid isPermaLink="false">44752@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Talked to Alex, I know you guys are busy, just threw that out there so it would be somewhere on a list some place, I know issues like this is just part of GF evolving. I'll send it along to your team once I have the code finished up and working, just been rough since documentation was lax on everything I needed to be pulling in from the form submission during validation
&#60;/p&#62;</description>
		</item>
		<item>
			<title>sc0ttkclark on "Getting all Lead (entry) data submitted within gform_validation"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/getting-all-lead-entry-data-submitted-within-gform_validation#post-44749</link>
			<pubDate>Wed, 21 Dec 2011 19:48:23 +0000</pubDate>
			<dc:creator>sc0ttkclark</dc:creator>
			<guid isPermaLink="false">44749@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I should also mention that this is definitely needed for Pods integration, though I can put in a work around - it'll just be hacky and all $_POSTy, that's asking for trouble and the code should rely on GF itself to present the data so that as anything changes in the future, I'm still getting back what I need as it expects.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>sc0ttkclark on "Getting all Lead (entry) data submitted within gform_validation"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/getting-all-lead-entry-data-submitted-within-gform_validation#post-44748</link>
			<pubDate>Wed, 21 Dec 2011 19:44:05 +0000</pubDate>
			<dc:creator>sc0ttkclark</dc:creator>
			<guid isPermaLink="false">44748@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Any chance all this information can be fleshed out into a single function that's included in the next version? I can't think of anyone, who does validation, who would think this useless - it's exactly what they'd look for. It sucks having everyone code up their own home brewed version of this, it wouldn't suck having a function in GF to utilize that's standardized and gives back everything as you'd expect it.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Dana Cobb on "Getting all Lead (entry) data submitted within gform_validation"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/getting-all-lead-entry-data-submitted-within-gform_validation#post-44602</link>
			<pubDate>Tue, 20 Dec 2011 19:05:13 +0000</pubDate>
			<dc:creator>Dana Cobb</dc:creator>
			<guid isPermaLink="false">44602@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;No, the code I posted does not cover the multi-input fields. Take a look at the Advanced Fields section and the information about &#34;inputs&#34; at &#60;a href=&#34;http://www.gravityhelp.com/documentation/page/Field_Object&#34; rel=&#34;nofollow&#34;&#62;http://www.gravityhelp.com/documentation/page/Field_Object&#60;/a&#62; .&#60;/p&#62;
&#60;p&#62;What you can do, is while looping through the fields, you can check to see if there are inputs and get the values for the individual pieces. In the example below if there are inputs, I loop through the inputs, get the id of the individual field and get the value from $_POST (using rgpost to handle when a field isn't set, like a checkbox not checked). The id in the inputs collection will be something like 3.3, but in $_POST it will be input_3_3.&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;//see if field has inputs
if(rgar($field, &#38;quot;inputs&#38;quot;))
{
	//get individual field info
	foreach($field[&#38;quot;inputs&#38;quot;] as $input){
		//get name of individual field, replace period with underscore when pulling from post
		$input_name = &#38;quot;input_&#38;quot; . str_replace(&#38;quot;.&#38;quot;,&#38;quot;_&#38;quot;,$input[&#38;quot;id&#38;quot;]);
		$value = rgpost($input_name);
		//do whatever validation on the value you want
	}
}&#60;/code&#62;&#60;/pre&#62;</description>
		</item>
		<item>
			<title>sc0ttkclark on "Getting all Lead (entry) data submitted within gform_validation"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/getting-all-lead-entry-data-submitted-within-gform_validation#post-44207</link>
			<pubDate>Thu, 15 Dec 2011 20:56:29 +0000</pubDate>
			<dc:creator>sc0ttkclark</dc:creator>
			<guid isPermaLink="false">44207@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Also Dana, does the code you posted above cover fields that have multiple fields in them, like the first/last name combo field, or address field, checkboxes, etc?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>sc0ttkclark on "Getting all Lead (entry) data submitted within gform_validation"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/getting-all-lead-entry-data-submitted-within-gform_validation#post-44205</link>
			<pubDate>Thu, 15 Dec 2011 19:45:38 +0000</pubDate>
			<dc:creator>sc0ttkclark</dc:creator>
			<guid isPermaLink="false">44205@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Also, one of my use-cases for the file data is actually to take the file (after it's been processed by WP upload handler) and upload it to another service (I give it a URL), or if it's an image then resize it locally using the WP image resizing functions. Actually, for my purposes, all of my forms delete entries upon success, they're all mapped to Pods using the new GF &#38;gt;&#38;gt; Pods mapping code I've built.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>sc0ttkclark on "Getting all Lead (entry) data submitted within gform_validation"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/getting-all-lead-entry-data-submitted-within-gform_validation#post-44204</link>
			<pubDate>Thu, 15 Dec 2011 19:44:01 +0000</pubDate>
			<dc:creator>sc0ttkclark</dc:creator>
			<guid isPermaLink="false">44204@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I see.. then at least build the function that does the readying of the $_POST/$_FILES data for us, so that we can use it in the validation, modify the $_POST etc ourselves if we absolutely need to. Then you could also use that same function in core during the processing (after validation) to re-setup the same code. At least we'd be able to use that function, and if we don't, the function never runs at validation and just runs when GF does processing.&#60;/p&#62;
&#60;p&#62;Make sense? Yay hookers!
&#60;/p&#62;</description>
		</item>
		<item>
			<title>David Smith on "Getting all Lead (entry) data submitted within gform_validation"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/getting-all-lead-entry-data-submitted-within-gform_validation#post-44170</link>
			<pubDate>Thu, 15 Dec 2011 17:42:04 +0000</pubDate>
			<dc:creator>David Smith</dc:creator>
			<guid isPermaLink="false">44170@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Readying the data for actual storage in the database is fairly involved and for some fields requires actually changing the raw submitted value. Allowing you to modify these values in the $_POST and $_FILES (before Gravity Forms alters them) gives you complete control of the raw values before GF takes over to finish the job. Power to the hookers! ;)
&#60;/p&#62;</description>
		</item>
		<item>
			<title>sc0ttkclark on "Getting all Lead (entry) data submitted within gform_validation"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/getting-all-lead-entry-data-submitted-within-gform_validation#post-44166</link>
			<pubDate>Thu, 15 Dec 2011 17:18:27 +0000</pubDate>
			<dc:creator>sc0ttkclark</dc:creator>
			<guid isPermaLink="false">44166@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Ouch, can't this data be readied before it comes to the hook? Seems like hitting $_POST and $_FILES in your own validation function is really a bad idea. I'll use it for now, just voicing my very strong opinion on the lacking functionality for us who choose to hook (lol, don't be dirty!)
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Dana Cobb on "Getting all Lead (entry) data submitted within gform_validation"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/getting-all-lead-entry-data-submitted-within-gform_validation#post-44164</link>
			<pubDate>Thu, 15 Dec 2011 17:07:30 +0000</pubDate>
			<dc:creator>Dana Cobb</dc:creator>
			<guid isPermaLink="false">44164@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi, Scott,&#60;/p&#62;
&#60;p&#62;I have posted an example of using the validation hook to pull out information from the submitted form which includes a file upload. Take a look at the sample here: &#60;a href=&#34;http://pastie.org/3022992&#34; rel=&#34;nofollow&#34;&#62;http://pastie.org/3022992&#60;/a&#62; .&#60;/p&#62;
&#60;p&#62;The data submitted by the user is available in the $_POST object and the uploaded file information (size, temp name, name) is available in the $_FILES object.&#60;/p&#62;
&#60;p&#62;Take a look and let me know if you have questions, but I think this will get you where you want to be.
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
