<?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: How do I get the Entry object from my pre_render function</title>
		<link>https://legacy.forums.gravityhelp.com/topic/how-do-i-get-the-entry-object-from-my-pre_render-function</link>
		<description>Gravity Support Forums Topic: How do I get the Entry object from my pre_render function</description>
		<language>en-US</language>
		<pubDate>Tue, 21 Apr 2026 15:30:36 +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/how-do-i-get-the-entry-object-from-my-pre_render-function" rel="self" type="application/rss+xml" />

		<item>
			<title>Rob Harrell on "How do I get the Entry object from my pre_render function"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/how-do-i-get-the-entry-object-from-my-pre_render-function#post-59767</link>
			<pubDate>Mon, 21 May 2012 20:33:10 +0000</pubDate>
			<dc:creator>Rob Harrell</dc:creator>
			<guid isPermaLink="false">59767@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Awesome, glad you are good to go!
&#60;/p&#62;</description>
		</item>
		<item>
			<title>windfarmstudios on "How do I get the Entry object from my pre_render function"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/how-do-i-get-the-entry-object-from-my-pre_render-function#post-59766</link>
			<pubDate>Mon, 21 May 2012 20:31:25 +0000</pubDate>
			<dc:creator>windfarmstudios</dc:creator>
			<guid isPermaLink="false">59766@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Thanks Alex. Inspecting the $_POST variable did the trick!
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Alex Cancado on "How do I get the Entry object from my pre_render function"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/how-do-i-get-the-entry-object-from-my-pre_render-function#post-59659</link>
			<pubDate>Mon, 21 May 2012 13:19:46 +0000</pubDate>
			<dc:creator>Alex Cancado</dc:creator>
			<guid isPermaLink="false">59659@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;The entry object is not created until the form is successfully submitted, so you will need to use the $_POST variable to get the currently selected value. It will look something like $_POST[&#34;input_4&#34;], where 4 is your field ID.&#60;/p&#62;
&#60;p&#62;As far as the &#34;Missing argument error&#34;, try changing your add_action() line to the following:&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;add_action(&#38;quot;gform_after_submission_4&#38;quot;, &#38;quot;book_after_submission&#38;quot;, 10, 2);&#60;/code&#62;&#60;/pre&#62;</description>
		</item>
		<item>
			<title>windfarmstudios on "How do I get the Entry object from my pre_render function"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/how-do-i-get-the-entry-object-from-my-pre_render-function#post-59543</link>
			<pubDate>Sun, 20 May 2012 15:01:46 +0000</pubDate>
			<dc:creator>windfarmstudios</dc:creator>
			<guid isPermaLink="false">59543@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I'm hooking in to my form with gfrom_pre_render_1 - in this hook, I'm changing a dropdown to dynamic options populated from a custom post type. This works perfect. Yay.&#60;/p&#62;
&#60;p&#62;However, now my problem is, if the form is submitted with errors, the form re-renders with non of the selected dropdowns.&#60;/p&#62;
&#60;p&#62;I'd like to know if there's a static method or some way of getting the Entry object from my pre_render function so I can check and mark the selected options, selected again on submission error.&#60;/p&#62;
&#60;p&#62;Also, I'm getting a Missing argument error with the gform_after_submission hook. Using the latest release: 1.6.4.3&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;add_action(&#38;quot;gform_after_submission_4&#38;quot;, &#38;quot;book_after_submission&#38;quot;);
function book_after_submission($entry,$form) {
	var_dump($entry);
	var_dump($form); die();
}&#60;/code&#62;&#60;/pre&#62;</description>
		</item>

	</channel>
</rss>
