<?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: entry_id value needed</title>
		<link>https://legacy.forums.gravityhelp.com/topic/entry_id-value-needed</link>
		<description>Gravity Support Forums Topic: entry_id value needed</description>
		<language>en-US</language>
		<pubDate>Sat, 04 Apr 2026 22:50:18 +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/entry_id-value-needed" rel="self" type="application/rss+xml" />

		<item>
			<title>Carl Hancock on "entry_id value needed"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/entry_id-value-needed#post-48908</link>
			<pubDate>Thu, 09 Feb 2012 17:37:33 +0000</pubDate>
			<dc:creator>Carl Hancock</dc:creator>
			<guid isPermaLink="false">48908@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;The gform_pre_submission hook fires BEFORE the entry exists.  So it can't get the entry id, it doesn't exist at that point.&#60;/p&#62;
&#60;p&#62;You would have to use the gform_after_submission hook which fired AFTER the entry has been created.&#60;/p&#62;
&#60;p&#62;The gform_after_submission hook is documented here:&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://www.gravityhelp.com/documentation/page/Gform_after_submission&#34; rel=&#34;nofollow&#34;&#62;http://www.gravityhelp.com/documentation/page/Gform_after_submission&#60;/a&#62;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>swimtime on "entry_id value needed"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/entry_id-value-needed#post-48849</link>
			<pubDate>Thu, 09 Feb 2012 14:07:59 +0000</pubDate>
			<dc:creator>swimtime</dc:creator>
			<guid isPermaLink="false">48849@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I want to get the value of the entry id and have placed the following code into my functions.php:&#60;/p&#62;
&#60;p&#62;// adds id when you submit form&#60;br /&#62;
add_action(&#34;gform_pre_submission&#34;, &#34;populate_id&#34;);&#60;br /&#62;
function populate_id( $form ) {&#60;br /&#62;
  $_POST['input_131'] = RGFormsModel::get_lead($entry_id);&#60;br /&#62;
}&#60;/p&#62;
&#60;p&#62;where &#34;131&#34; is my field number for the placement.&#60;/p&#62;
&#60;p&#62;The reason i need to re populate the ID is b/c client doesnt want the tile of the form at the top. just the id. i can hide the entire &#34;details&#34; column, but now i need to re populate.&#60;/p&#62;
&#60;p&#62;thanks!
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
