<?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: Notification Modification in gform_pre_submission</title>
		<link>https://legacy.forums.gravityhelp.com/topic/notification-modification-in-gform_pre_submission</link>
		<description>Gravity Support Forums Topic: Notification Modification in gform_pre_submission</description>
		<language>en-US</language>
		<pubDate>Tue, 07 Apr 2026 11:52:31 +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/notification-modification-in-gform_pre_submission" rel="self" type="application/rss+xml" />

		<item>
			<title>Chris Hajer on "Notification Modification in gform_pre_submission"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/notification-modification-in-gform_pre_submission#post-94082</link>
			<pubDate>Wed, 21 Nov 2012 12:27:26 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">94082@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I'm not sure where I learned that one.  You could just access $_POST directly, but rgpost strips slashes.  You could also use  RGForms::post.  The preferred method is rgpost.  All 3 methods will get you the same value.&#60;/p&#62;
&#60;p&#62;Were you able to successfully modify your subject line?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>flauntbooks on "Notification Modification in gform_pre_submission"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/notification-modification-in-gform_pre_submission#post-93786</link>
			<pubDate>Tue, 20 Nov 2012 23:56:38 +0000</pubDate>
			<dc:creator>flauntbooks</dc:creator>
			<guid isPermaLink="false">93786@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Very helpful.  Thank you.  I searched the documentation but didn't find anything on rgpost().
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "Notification Modification in gform_pre_submission"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/notification-modification-in-gform_pre_submission#post-93758</link>
			<pubDate>Tue, 20 Nov 2012 22:41:26 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">93758@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Yes, you can access all the $_POST values in the gform_pre_submission or gform_pre_submission_filter.  The &#60;strong&#62;rgpost&#60;/strong&#62; function just sanitizes the values a little bit so you're not directly reading the $_POST.  Here is a simple example:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;[php]
&#38;lt;?php
// change the 14 here to your form ID
add_filter(&#38;#39;gform_pre_submission_filter_14&#38;#39;, &#38;#39;change_notification_subject&#38;#39;);
function change_notification_subject($form){
	// grab the first and last name, parts of field 1
	$fname = rgpost(&#38;#39;input_1_3&#38;#39;);
	$lname = rgpost(&#38;#39;input_1_6&#38;#39;);

	// modify the subject line of the user notification
	$form[&#38;#39;autoResponder&#38;#39;][&#38;#39;subject&#38;#39;] = &#38;quot;$fname $lname: Today is your lucky day!&#38;quot;;

	// return modified form
	return $form;
}&#60;/code&#62;&#60;/pre&#62;</description>
		</item>
		<item>
			<title>flauntbooks on "Notification Modification in gform_pre_submission"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/notification-modification-in-gform_pre_submission#post-93693</link>
			<pubDate>Tue, 20 Nov 2012 20:56:58 +0000</pubDate>
			<dc:creator>flauntbooks</dc:creator>
			<guid isPermaLink="false">93693@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I noticed the gform_pre_submission hook includes the $form OBJECT but not the $entry OBJECT.&#60;/p&#62;
&#60;p&#62;I'm attempting to change the subject line of the notification email based upon selections in the user's entry.  Is there a way to access the $_POST or rgpost or $entry object from within gform_pre_submission?&#60;/p&#62;
&#60;p&#62;I've seen rgpost('input_#') a couple of places on the site and I was wondering if that was a function for retrieving the entry of an input.&#60;/p&#62;
&#60;p&#62;Thanks for your help.
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
