<?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: Possible to export all fields in Entry object?</title>
		<link>https://legacy.forums.gravityhelp.com/topic/possible-to-export-all-fields-in-entry-object</link>
		<description>Gravity Support Forums Topic: Possible to export all fields in Entry object?</description>
		<language>en-US</language>
		<pubDate>Thu, 16 Apr 2026 23:03:07 +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/possible-to-export-all-fields-in-entry-object" rel="self" type="application/rss+xml" />

		<item>
			<title>Dana Cobb on "Possible to export all fields in Entry object?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/possible-to-export-all-fields-in-entry-object#post-50246</link>
			<pubDate>Wed, 22 Feb 2012 18:45:45 +0000</pubDate>
			<dc:creator>Dana Cobb</dc:creator>
			<guid isPermaLink="false">50246@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi, &#60;a href=&#34;mailto:sales@luxsci.com&#34;&#62;sales@luxsci.com&#60;/a&#62;,&#60;/p&#62;
&#60;p&#62;You can loop through the fields in the $form object and pull out the label/values for that field from the $entry object. Below is an example that loops through the $form object, checks to see if the field is a complex one like name or address, and gets the label and value. That information can be passed on to the third party however you want.&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;function send_entry($entry, $form)
{
       //only do this for a certain form (id 53 for example)
	if ($form[&#38;quot;id&#38;quot;] == 53)
	{
		foreach($form[&#38;quot;fields&#38;quot;] as &#38;amp;$field)
		{
			//see if this is a multi-field, like name or address
			if (is_array($field[&#38;quot;inputs&#38;quot;]))
			{
				//loop through inputs
				foreach($field[&#38;quot;inputs&#38;quot;] as &#38;amp;$input)
				{
					$label = $input[&#38;quot;label&#38;quot;];
					//get value from entry object; change the id to a string
					$value = $entry[strval($input[&#38;quot;id&#38;quot;])];
				}
			}
			else
			{
				$label = $field[&#38;quot;label&#38;quot;];
				//get value from entry object
				$value = $entry[$field[&#38;quot;id&#38;quot;]];
			}
		}
	}
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;In the example above, when looping through the fields, you can also use the code below which will combine the data for the complex fields like name into one value&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;//get the values for the field, will be an array if a complex field like name or address
$raw_value = RGFormsModel::get_lead_field_value($entry, $field);
//combines the data for complex fields, for example name will have the first and last combined into one value
$value = GFCommon::get_lead_field_display($field, $raw_value, $entry[&#38;quot;currency&#38;quot;], true, &#38;quot;text&#38;quot;);&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Let me know if you have questions.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>sales@luxsci.com on "Possible to export all fields in Entry object?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/possible-to-export-all-fields-in-entry-object#post-49624</link>
			<pubDate>Thu, 16 Feb 2012 14:40:48 +0000</pubDate>
			<dc:creator>sales@luxsci.com</dc:creator>
			<guid isPermaLink="false">49624@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hello,&#60;/p&#62;
&#60;p&#62;I have a form with many fields, over 100. I'm using gform_post_submission to send the data to a 3rd party server, but rather than having to go through and get every field's unique ID and input it as:&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;&#38;#39;first_name&#38;#39; =&#38;gt; $entry[&#38;#39;1.3&#38;#39;],
 &#38;#39;last_name&#38;#39; =&#38;gt; $entry[&#38;#39;1.6&#38;#39;],&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;etc.... Is there a simple way to have ALL fields posted without adding them one-by-one by field ID...? This can be quite tedious in forms with many fields...&#60;/p&#62;
&#60;p&#62;A prompt response is appreciated!&#60;/p&#62;
&#60;p&#62;Thank you
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
