<?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: Field_values not set when posting form</title>
		<link>https://legacy.forums.gravityhelp.com/topic/field_values-not-set-when-posting-form</link>
		<description>Gravity Support Forums Topic: Field_values not set when posting form</description>
		<language>en-US</language>
		<pubDate>Fri, 24 Apr 2026 11:40:16 +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/field_values-not-set-when-posting-form" rel="self" type="application/rss+xml" />

		<item>
			<title>David Peralty on "Field_values not set when posting form"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/field_values-not-set-when-posting-form#post-55626</link>
			<pubDate>Wed, 18 Apr 2012 08:03:19 +0000</pubDate>
			<dc:creator>David Peralty</dc:creator>
			<guid isPermaLink="false">55626@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Glad it got sorted out.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>exed on "Field_values not set when posting form"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/field_values-not-set-when-posting-form#post-55601</link>
			<pubDate>Wed, 18 Apr 2012 03:10:20 +0000</pubDate>
			<dc:creator>exed</dc:creator>
			<guid isPermaLink="false">55601@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;How obvious to set the right name attribute.. Thanks Alex! It even works with array values!
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Alex Cancado on "Field_values not set when posting form"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/field_values-not-set-when-posting-form#post-55479</link>
			<pubDate>Tue, 17 Apr 2012 10:25:02 +0000</pubDate>
			<dc:creator>Alex Cancado</dc:creator>
			<guid isPermaLink="false">55479@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I used your code snippet above on an email field and the $value variable had the right value after the form is submitted. After the form is submitted, the $value variable will have whatever was actually entered in the field, and not what was used to initially populate it.&#60;br /&#62;
I am guessing in the dark, but I think the problem is your input does not have the right name attribute. (i.e name=&#34;input_FIELDID&#34;). Take a look at the text field input and try making yours follow the same pattern. That should make Gravity Forms understand the value submitted by your input and the $value variable will then be populated with the value that was submitted.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>exed on "Field_values not set when posting form"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/field_values-not-set-when-posting-form#post-55328</link>
			<pubDate>Mon, 16 Apr 2012 07:39:27 +0000</pubDate>
			<dc:creator>exed</dc:creator>
			<guid isPermaLink="false">55328@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I'm creating a form like so:&#60;br /&#62;
[gravityform id=&#34;2&#34; name=&#34;foo&#34; field_values=&#34;a=b&#34;]&#60;/p&#62;
&#60;p&#62;I've got a custom field which catches the value of 'a' in this case (having set the proper options to catch the value of course):&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;add_action(&#38;#39;gform_field_content&#38;#39;, &#38;#39;eo_add_field_schedule&#38;#39;, 10, 5);
function eo_add_field_schedule($content, $field, $value, $lead_id, $form_id)
{
    if ($field[&#38;#39;type&#38;#39;] == &#38;#39;schedule&#38;#39;) {
        var_dump($value);
    }
    return $content;
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;On page load, the dump correctly displays 'b' but when posting, the value remains empty. This issue pops up once the form has validation errors.&#60;/p&#62;
&#60;p&#62;Any idea's on this one? Thanks!
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
