<?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: gform_pre_render not effecting form</title>
		<link>https://legacy.forums.gravityhelp.com/topic/gform_pre_render-not-effecting-form</link>
		<description>Gravity Support Forums Topic: gform_pre_render not effecting form</description>
		<language>en-US</language>
		<pubDate>Sat, 04 Apr 2026 01:43:38 +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/gform_pre_render-not-effecting-form" rel="self" type="application/rss+xml" />

		<item>
			<title>edlab on "gform_pre_render not effecting form"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/gform_pre_render-not-effecting-form#post-23697</link>
			<pubDate>Tue, 19 Apr 2011 15:23:18 +0000</pubDate>
			<dc:creator>edlab</dc:creator>
			<guid isPermaLink="false">23697@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I found my solution. I am simply using this for each entry that is required.  But wrapped in an if statement for the users status. &#60;/p&#62;
&#60;pre&#62;&#60;code&#62;$form[&#38;#39;fields][0][&#38;#39;isRequired&#38;#39;] = false;&#60;/code&#62;&#60;/pre&#62;</description>
		</item>
		<item>
			<title>edlab on "gform_pre_render not effecting form"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/gform_pre_render-not-effecting-form#post-23694</link>
			<pubDate>Tue, 19 Apr 2011 14:52:30 +0000</pubDate>
			<dc:creator>edlab</dc:creator>
			<guid isPermaLink="false">23694@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;omit the print $form['fields]; a holdover from working on this.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>edlab on "gform_pre_render not effecting form"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/gform_pre_render-not-effecting-form#post-23693</link>
			<pubDate>Tue, 19 Apr 2011 14:51:06 +0000</pubDate>
			<dc:creator>edlab</dc:creator>
			<guid isPermaLink="false">23693@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I am trying to switch required fields to not required based upon a users logged in status. Just trying to get exisiting required to switch and not getting any change. The function and filter do work because the form does display. Note there is no logged in conditional in the function yet.&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;add_filter(&#38;#39;gform_pre_render_1&#38;#39;, &#38;#39;form_logged&#38;#39;);

function form_logged($form){

	print $form[&#38;#39;field&#38;#39;];

	foreach($form[&#38;#39;fields&#38;#39;] as $field){

		if($field[&#38;#39;isRequired&#38;#39;]){
	                $field[&#38;#39;isRequired&#38;#39;] = true;
	                return $form;

		}

	}

}&#60;/code&#62;&#60;/pre&#62;</description>
		</item>

	</channel>
</rss>
