<?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 to get entry or form value from field with underscore</title>
		<link>https://legacy.forums.gravityhelp.com/topic/how-to-get-entry-or-form-value-from-field-with-underscore</link>
		<description>Gravity Support Forums Topic: How to get entry or form value from field with underscore</description>
		<language>en-US</language>
		<pubDate>Sun, 05 Apr 2026 10:07:07 +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-to-get-entry-or-form-value-from-field-with-underscore" rel="self" type="application/rss+xml" />

		<item>
			<title>caseym on "How to get entry or form value from field with underscore"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/how-to-get-entry-or-form-value-from-field-with-underscore#post-30367</link>
			<pubDate>Mon, 18 Jul 2011 20:19:09 +0000</pubDate>
			<dc:creator>caseym</dc:creator>
			<guid isPermaLink="false">30367@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;David,&#60;/p&#62;
&#60;p&#62;I found the problem and it's nothing related to gravity forms. I was trying to call $entry[32] within a function. But when I passed the value to the function it worked:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;function add_coords($cat_id, $coord_input) {
		add_terms_meta($cat_id[&#38;#39;term_id&#38;#39;], &#38;#39;category_meta_latitude&#38;#39;, $coord_input);
	}
add_coords($named_id, $entry[32]);&#60;/code&#62;&#60;/pre&#62;</description>
		</item>
		<item>
			<title>David Smith on "How to get entry or form value from field with underscore"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/how-to-get-entry-or-form-value-from-field-with-underscore#post-30335</link>
			<pubDate>Mon, 18 Jul 2011 16:05:23 +0000</pubDate>
			<dc:creator>David Smith</dc:creator>
			<guid isPermaLink="false">30335@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi Caseym,&#60;/p&#62;
&#60;p&#62;Try using the &#60;a href=&#34;http://php.net/manual/en/function.print-r.php&#34; rel=&#34;nofollow&#34;&#62;print_r()&#60;/a&#62; function to output the entire &#60;strong&#62;$entry&#60;/strong&#62; array and see if there is a value for that index at all. If there is no value stored, could you explain how the hidden field is populated? I was not clear on that.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>caseym on "How to get entry or form value from field with underscore"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/how-to-get-entry-or-form-value-from-field-with-underscore#post-30235</link>
			<pubDate>Sun, 17 Jul 2011 21:06:05 +0000</pubDate>
			<dc:creator>caseym</dc:creator>
			<guid isPermaLink="false">30235@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hello,&#60;/p&#62;
&#60;p&#62;Here's a link to my form:&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://pcsreports.com/submit-review&#34; rel=&#34;nofollow&#34;&#62;http://pcsreports.com/submit-review&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;The hidden field I'm trying to get the value for is 6_32 and I'm referencing it in my code as:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;add_action(&#38;quot;gform_post_submission_6&#38;quot;, &#38;quot;create_cat&#38;quot;);
function create_cat($entry, $form){
	//add coords to category meta
	function add_coords($cat_id) {
		add_terms_meta($cat_id[&#38;#39;term_id&#38;#39;], &#38;#39;category_meta_latitude&#38;#39;, $entry[32]);
	}
... lots of other code
}&#60;/code&#62;&#60;/pre&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "How to get entry or form value from field with underscore"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/how-to-get-entry-or-form-value-from-field-with-underscore#post-30227</link>
			<pubDate>Sun, 17 Jul 2011 17:36:12 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">30227@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;There is nothing special about the underscore fields.  The underscore just hides them from the custom fields drop down in the post editor.  Please post a link to your form and the code you're using so we can see where the problem might lie.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>caseym on "How to get entry or form value from field with underscore"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/how-to-get-entry-or-form-value-from-field-with-underscore#post-30222</link>
			<pubDate>Sun, 17 Jul 2011 15:55:18 +0000</pubDate>
			<dc:creator>caseym</dc:creator>
			<guid isPermaLink="false">30222@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hello,&#60;/p&#62;
&#60;p&#62;When I set up WPGeo, it had me create two fields for lat/long, labeled like this:&#60;/p&#62;
&#60;p&#62;_wp_geo_latitude&#60;br /&#62;
_wp_geo_longitude&#60;/p&#62;
&#60;p&#62;I'm trying to access those values using gform_post_submission, but I'm not getting anything the normal way, $entry[32]. Is there something special about using an underscore? Can I access this value another way?&#60;/p&#62;
&#60;p&#62;Thanks,&#60;br /&#62;
Casey
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
