<?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: Consistently reliable way to get form values in pre_submission hook</title>
		<link>https://legacy.forums.gravityhelp.com/topic/consistently-reliable-way-to-get-form-values-in-pre_submission-hook</link>
		<description>Gravity Support Forums Topic: Consistently reliable way to get form values in pre_submission hook</description>
		<language>en-US</language>
		<pubDate>Wed, 22 Apr 2026 05:35:50 +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/consistently-reliable-way-to-get-form-values-in-pre_submission-hook" rel="self" type="application/rss+xml" />

		<item>
			<title>David Smith on "Consistently reliable way to get form values in pre_submission hook"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/consistently-reliable-way-to-get-form-values-in-pre_submission-hook#post-17854</link>
			<pubDate>Mon, 07 Feb 2011 17:25:36 +0000</pubDate>
			<dc:creator>David Smith</dc:creator>
			<guid isPermaLink="false">17854@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I understand the predicament. One hack-ish way I've added flexibility to this in the past is to use the 'cssClass' property of the field to identify it. For example, if you need to know which field is the username field, just add a class in the admin for the field that will be used as the username. Then the code will be dependent on the class (which could then be updated in the admin freely) without be depending on a field ID.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>JohnC28 on "Consistently reliable way to get form values in pre_submission hook"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/consistently-reliable-way-to-get-form-values-in-pre_submission-hook#post-17852</link>
			<pubDate>Mon, 07 Feb 2011 17:07:50 +0000</pubDate>
			<dc:creator>JohnC28</dc:creator>
			<guid isPermaLink="false">17852@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi David&#60;/p&#62;
&#60;p&#62;&#38;gt;At this point in the process Gravity Forms has not retrieved the entry values&#60;br /&#62;
So is it better to wait for a later hook?&#60;/p&#62;
&#60;p&#62;I'm creating a new user, a new post, possibly a new category and sending emails so I need a fair amount of what's in the form (and it's too custom to use your other plug-ins).&#60;/p&#62;
&#60;p&#62;It's all working but I don't like the hardcoded elements of the code - we've already changed the form structure twice and it means that no changes can be made using the GF interface since it now relies too much on underlying code.&#60;/p&#62;
&#60;p&#62;John
&#60;/p&#62;</description>
		</item>
		<item>
			<title>David Smith on "Consistently reliable way to get form values in pre_submission hook"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/consistently-reliable-way-to-get-form-values-in-pre_submission-hook#post-17848</link>
			<pubDate>Mon, 07 Feb 2011 17:04:04 +0000</pubDate>
			<dc:creator>David Smith</dc:creator>
			<guid isPermaLink="false">17848@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi John, the $_POST is currently the only way to get the entry values during the gform_pre_submission hook. At this point in the process Gravity Forms has not retrieved the entry values (with a few exceptions) and when it does, it too uses the $_POST.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>JohnC28 on "Consistently reliable way to get form values in pre_submission hook"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/consistently-reliable-way-to-get-form-values-in-pre_submission-hook#post-17814</link>
			<pubDate>Mon, 07 Feb 2011 11:07:42 +0000</pubDate>
			<dc:creator>JohnC28</dc:creator>
			<guid isPermaLink="false">17814@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;What's the best way to get at form values in the pre_submission hook?&#60;/p&#62;
&#60;p&#62;I know I can use $_POST['input_5'] or whatever, but that isn't very maintainable.&#60;/p&#62;
&#60;p&#62;Also, if I edit my form, the id will change.&#60;/p&#62;
&#60;p&#62;Is there a better approach?
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
