<?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: Get entry ID in gform_pre_submission_filter function</title>
		<link>https://legacy.forums.gravityhelp.com/topic/get-entry-id-in-gform_pre_submission_filter-function</link>
		<description>Gravity Support Forums Topic: Get entry ID in gform_pre_submission_filter function</description>
		<language>en-US</language>
		<pubDate>Thu, 23 Apr 2026 15:07:39 +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/get-entry-id-in-gform_pre_submission_filter-function" rel="self" type="application/rss+xml" />

		<item>
			<title>Vayu on "Get entry ID in gform_pre_submission_filter function"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/get-entry-id-in-gform_pre_submission_filter-function#post-33004</link>
			<pubDate>Fri, 19 Aug 2011 03:29:12 +0000</pubDate>
			<dc:creator>Vayu</dc:creator>
			<guid isPermaLink="false">33004@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi Carl.&#60;/p&#62;
&#60;p&#62;Thank you for your feedback. :-)&#60;br /&#62;
I did find a way to get the entry_id in the gform_pre_submission_filter hook, but it's a bit complicated.  Here's what I did.&#60;br /&#62;
I placed the {entry_id} in the message textarea in the &#34;Notification to admin&#34; section.  I then called the content from the gform_pre_submission_filter hook like this:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;$form[&#38;#39;notification&#38;#39;][&#38;#39;message&#38;#39;] = $form[&#38;#39;notification&#38;#39;][&#38;#39;message&#38;#39;] .&#38;#39; &#38;#39;. $email_body&#38;#39;;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Where $email_body contains all my modified content and $form['notification']['message'] gets the entry_id.&#60;br /&#62;
This is why I actually thought that the gform_pre_submission_filter hook was called after the data was stored in the db.&#60;br /&#62;
Vayu
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Carl Hancock on "Get entry ID in gform_pre_submission_filter function"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/get-entry-id-in-gform_pre_submission_filter-function#post-32974</link>
			<pubDate>Thu, 18 Aug 2011 18:29:17 +0000</pubDate>
			<dc:creator>Carl Hancock</dc:creator>
			<guid isPermaLink="false">32974@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;The entry doesn't exist yet when the gform_pre_submission_filter hook is fired.  That hook fires after validation but before the entry is created.  So there isn't an Entry ID yet.  You'd have to use the gform_post_submission hook which fires after the entry exists.  Although that fires after the notification is sent out.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Vayu on "Get entry ID in gform_pre_submission_filter function"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/get-entry-id-in-gform_pre_submission_filter-function#post-32973</link>
			<pubDate>Thu, 18 Aug 2011 18:24:26 +0000</pubDate>
			<dc:creator>Vayu</dc:creator>
			<guid isPermaLink="false">32973@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi.&#60;br /&#62;
I am using the gform_pre_submission_filter function to filter the notification sent out.  However, I would really like to be able to get the Entry ID (entry_id), as this is used as an order number and it needs to show in the email.&#60;br /&#62;
Is it possible to get the entry ID in this function?&#60;br /&#62;
Thank you.&#60;br /&#62;
Vayu
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
