<?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: Working with $form object and $entry object</title>
		<link>https://legacy.forums.gravityhelp.com/topic/working-with-form-object-and-entry-object</link>
		<description>Gravity Support Forums Topic: Working with $form object and $entry object</description>
		<language>en-US</language>
		<pubDate>Sun, 19 Apr 2026 18:21:38 +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/working-with-form-object-and-entry-object" rel="self" type="application/rss+xml" />

		<item>
			<title>Chris Hajer on "Working with $form object and $entry object"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/working-with-form-object-and-entry-object#post-123657</link>
			<pubDate>Wed, 16 Jan 2013 16:26:07 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">123657@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Let us know if you need help.  It was some quick and dirty rudimentary logging I set up a couple times, but it seems to work OK for debugging and getting at the exact format of the $form and $entry objects.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>ajmorris on "Working with $form object and $entry object"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/working-with-form-object-and-entry-object#post-123633</link>
			<pubDate>Wed, 16 Jan 2013 15:44:52 +0000</pubDate>
			<dc:creator>ajmorris</dc:creator>
			<guid isPermaLink="false">123633@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;OK great! That helps much easier than what I was doing! I'll see how far I can get now! :)
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "Working with $form object and $entry object"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/working-with-form-object-and-entry-object#post-122694</link>
			<pubDate>Tue, 15 Jan 2013 15:38:23 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">122694@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I've never gotten that complex.  I just do this, which works for me:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;?php
// this will work for form 150
add_action(&#38;#39;gform_after_submission_150&#38;#39;, &#38;#39;dump_variables&#38;#39;, 10, 2);
// generic logging function
function dump_variables($entry, $form) {
    $logfile = &#38;#39;/var/www/htdocs/gravity/gravity_log.txt&#38;#39;;
    $fh = fopen($logfile, &#38;#39;a&#38;#39;);
    $ebody  = &#38;quot;FORM:\n&#38;quot; . print_r($form, TRUE);
    $ebody .= &#38;quot;\n\nENTRY:\n&#38;quot; . print_r($entry, TRUE);
    $ebody .= &#38;quot;\n\nPOST:\n&#38;quot; . print_r($_POST, TRUE);
    fwrite($fh, $ebody);
    fclose($fh);
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;I called it $ebody at one point because I was emailing the data to myself.  I just log it now.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>ajmorris on "Working with $form object and $entry object"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/working-with-form-object-and-entry-object#post-122686</link>
			<pubDate>Tue, 15 Jan 2013 15:31:28 +0000</pubDate>
			<dc:creator>ajmorris</dc:creator>
			<guid isPermaLink="false">122686@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Here's what I've got going for a function right now, &#60;a href=&#34;https://gist.github.com/4541295&#34; rel=&#34;nofollow&#34;&#62;https://gist.github.com/4541295&#60;/a&#62;. I was trying to keep it simple, but this doesn't output to the error_log() for some reason.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "Working with $form object and $entry object"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/working-with-form-object-and-entry-object#post-122660</link>
			<pubDate>Tue, 15 Jan 2013 14:58:39 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">122660@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;var_dump and print_r will both work.  How are you using them?  I usually use print_r($entry) or print_r($form) in a gform_after_submission hook, to see what they contain.  I normally write that information to a log file and then check that.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>ajmorris on "Working with $form object and $entry object"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/working-with-form-object-and-entry-object#post-122623</link>
			<pubDate>Tue, 15 Jan 2013 13:46:56 +0000</pubDate>
			<dc:creator>ajmorris</dc:creator>
			<guid isPermaLink="false">122623@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;How can I see what the $form object and $entry object look like? I'd like to output them so I can figure out what I need to do to readjust them to work with an API. My thought was to just stub them out for the function, so I'm not having to fill out a form every time I want to test it, but I can't seem to get them to work. I've tried var_dump(), print_r(), echo, etc and can't get the objects. Can someone provide me with what I would have for each $form and $entry. Thanks!
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
