<?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: Changed isRequired but still validating</title>
		<link>https://legacy.forums.gravityhelp.com/topic/changed-isrequired-but-still-validating</link>
		<description>Gravity Support Forums Topic: Changed isRequired but still validating</description>
		<language>en-US</language>
		<pubDate>Thu, 23 Apr 2026 15:15:19 +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/changed-isrequired-but-still-validating" rel="self" type="application/rss+xml" />

		<item>
			<title>Chris Hajer on "Changed isRequired but still validating"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/changed-isrequired-but-still-validating#post-153210</link>
			<pubDate>Sat, 23 Feb 2013 17:48:47 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">153210@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Thanks for the update mikc03.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>mikc03 on "Changed isRequired but still validating"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/changed-isrequired-but-still-validating#post-152673</link>
			<pubDate>Fri, 22 Feb 2013 22:49:43 +0000</pubDate>
			<dc:creator>mikc03</dc:creator>
			<guid isPermaLink="false">152673@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;That worked!!!! :)&#60;/p&#62;
&#60;p&#62;Thank you very much for your help. I really appreciate it!
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Alex Cancado on "Changed isRequired but still validating"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/changed-isrequired-but-still-validating#post-152512</link>
			<pubDate>Fri, 22 Feb 2013 18:11:03 +0000</pubDate>
			<dc:creator>Alex Cancado</dc:creator>
			<guid isPermaLink="false">152512@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Ok guys. Here I am with an answer for you.&#60;br /&#62;
The gform_pre_render only fires when the form is displayed and not when the form is submitted. That is the reason fields are being marked as required (and appear to be required) when the form is displayed, but when the form is submitted, those fields are no longer marked as required. The solution is simple. In addition to using the gform_pre_render you will also need to use the gform_pre_validation. This is a relatively new hook available on GF 1.6.12 +, so make sure you are running the latest version. To make it more clear, following is the code that is needed to make this work:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;add_filter(&#38;quot;gform_pre_render&#38;quot;, &#38;quot;set_required&#38;quot;);
add_filter(&#38;quot;gform_pre_validation&#38;quot;, &#38;quot;set_required&#38;quot;);
function set_required($form){

    foreach($form[&#38;quot;fields&#38;quot;] as &#38;amp;$field) {
        $field[&#38;quot;isRequired&#38;quot;] = false;
    }

    return $form;
}&#60;/code&#62;&#60;/pre&#62;</description>
		</item>
		<item>
			<title>Rob Harrell on "Changed isRequired but still validating"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/changed-isrequired-but-still-validating#post-152505</link>
			<pubDate>Fri, 22 Feb 2013 17:58:48 +0000</pubDate>
			<dc:creator>Rob Harrell</dc:creator>
			<guid isPermaLink="false">152505@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I've reached out to the dev team to see if they have any ideas for you here.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>mikc03 on "Changed isRequired but still validating"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/changed-isrequired-but-still-validating#post-152429</link>
			<pubDate>Fri, 22 Feb 2013 14:13:27 +0000</pubDate>
			<dc:creator>mikc03</dc:creator>
			<guid isPermaLink="false">152429@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;seriously, no response???
&#60;/p&#62;</description>
		</item>
		<item>
			<title>mikc03 on "Changed isRequired but still validating"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/changed-isrequired-but-still-validating#post-151295</link>
			<pubDate>Thu, 21 Feb 2013 02:27:31 +0000</pubDate>
			<dc:creator>mikc03</dc:creator>
			<guid isPermaLink="false">151295@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hello,&#60;/p&#62;
&#60;p&#62;Any update on this?  Is this an existing issue? &#60;/p&#62;
&#60;p&#62;If so, please let me know if there is another way to get this working.&#60;/p&#62;
&#60;p&#62;Thank you,&#60;br /&#62;
RB
&#60;/p&#62;</description>
		</item>
		<item>
			<title>mikc03 on "Changed isRequired but still validating"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/changed-isrequired-but-still-validating#post-150315</link>
			<pubDate>Tue, 19 Feb 2013 13:37:01 +0000</pubDate>
			<dc:creator>mikc03</dc:creator>
			<guid isPermaLink="false">150315@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;See line 10 in &#60;a href=&#34;http://pastebin.com/eHjUTA7F&#34; rel=&#34;nofollow&#34;&#62;http://pastebin.com/eHjUTA7F&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;unset($form['fields'][$key]);
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "Changed isRequired but still validating"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/changed-isrequired-but-still-validating#post-150255</link>
			<pubDate>Tue, 19 Feb 2013 12:35:54 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">150255@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;How did you hide the zip code?  This code seems to make the field not required and also does not let us force a validation error. How did you hide the zip code in the first place?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>mikc03 on "Changed isRequired but still validating"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/changed-isrequired-but-still-validating#post-150173</link>
			<pubDate>Tue, 19 Feb 2013 11:01:03 +0000</pubDate>
			<dc:creator>mikc03</dc:creator>
			<guid isPermaLink="false">150173@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi Chris,&#60;/p&#62;
&#60;p&#62;The site is not public. I'm developing on my machine.&#60;/p&#62;
&#60;p&#62;Is there a sample code for removing validation on a field?&#60;/p&#62;
&#60;p&#62;Do you see anything wrong with my code? I followed all the info I found in the developer docs and other responses in this forum.&#60;/p&#62;
&#60;p&#62;Thanks,&#60;br /&#62;
RB
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "Changed isRequired but still validating"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/changed-isrequired-but-still-validating#post-149604</link>
			<pubDate>Mon, 18 Feb 2013 20:24:53 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">149604@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Can you share a link to the page on your site where we can see your form please?
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
