<?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: conditional redirect works, but need redirect script to check one more field</title>
		<link>https://legacy.forums.gravityhelp.com/topic/conditional-redirect-works-but-need-redirect-script-to-check-one-more-field</link>
		<description>Gravity Support Forums Topic: conditional redirect works, but need redirect script to check one more field</description>
		<language>en-US</language>
		<pubDate>Mon, 20 Apr 2026 05:32:53 +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/conditional-redirect-works-but-need-redirect-script-to-check-one-more-field" rel="self" type="application/rss+xml" />

		<item>
			<title>ahufford on "conditional redirect works, but need redirect script to check one more field"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/conditional-redirect-works-but-need-redirect-script-to-check-one-more-field#post-51050</link>
			<pubDate>Thu, 01 Mar 2012 16:06:17 +0000</pubDate>
			<dc:creator>ahufford</dc:creator>
			<guid isPermaLink="false">51050@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I had a programmer help me figure this out.  The code that should be added is as follows:&#60;/p&#62;
&#60;p&#62;  default:&#60;/p&#62;
&#60;p&#62;        // if no value defined, redirect to the following page&#60;/p&#62;
&#60;p&#62;        header(&#34;Location: &#60;a href=&#34;http://solarbridgetech.com/contact-us/thank-you/&#34; rel=&#34;nofollow&#34;&#62;http://solarbridgetech.com/contact-us/thank-you/&#60;/a&#62;&#34;);&#60;/p&#62;
&#60;p&#62;        break;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>ahufford on "conditional redirect works, but need redirect script to check one more field"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/conditional-redirect-works-but-need-redirect-script-to-check-one-more-field#post-50850</link>
			<pubDate>Tue, 28 Feb 2012 15:23:24 +0000</pubDate>
			<dc:creator>ahufford</dc:creator>
			<guid isPermaLink="false">50850@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I followed the instructions at &#60;a href=&#34;http://www.gravityhelp.com/forums/topic/terms-of-conditions#post-7442&#34; rel=&#34;nofollow&#34;&#62;http://www.gravityhelp.com/forums/topic/terms-of-conditions#post-7442&#60;/a&#62; to get conditional redirects to work, and that php script worked great for me.  However, in my case, the field that is looked at by the conditional redirect script is itself a conditional field that only shows up if the user identifies himself as homeowner or building owner.  &#60;/p&#62;
&#60;p&#62;What I need for the script to do is to address those folks who didn't even get to see this field (because it doesn't show up for them if they aren't homeowner or building owner) and to redirect them to a traditional thank you page at &#60;a href=&#34;http://solarbridgetech.com/contact-us/thank-you/&#34; rel=&#34;nofollow&#34;&#62;http://solarbridgetech.com/contact-us/thank-you/&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;I was trying to add something like this code below to the PHP, but I clearly don't know what I'm doing when it comes to PHP.  &#60;/p&#62;
&#60;p&#62;'	    case &#34;is_null&#34;:&#60;/p&#62;
&#60;p&#62;        // if no value defined, redirect to the following page&#60;/p&#62;
&#60;p&#62;        header(&#34;Location: &#60;a href=&#34;http://solarbridgetech.com/contact-us/thank-you/&#34; rel=&#34;nofollow&#34;&#62;http://solarbridgetech.com/contact-us/thank-you/&#60;/a&#62;&#34;);&#60;/p&#62;
&#60;p&#62;        break;&#60;/p&#62;
&#60;p&#62;    }&#60;br /&#62;
'&#60;/p&#62;
&#60;p&#62;I also tried &#34;null&#34; &#34;empty&#34; and maybe some other stuff.  Basically I want to add something in that says &#34;if you didn't submit something for this field, then you go to our redirect page at &#60;a href=&#34;http://solarbridgetech.com/contact-us/thank-you&#34; rel=&#34;nofollow&#34;&#62;http://solarbridgetech.com/contact-us/thank-you&#60;/a&#62;.  But I don't know if that would work.  Perhaps there is a better way of doing it, maybe by saying if you filled out another field this way (perhaps another drop down that is required by all users), then redirect to &#60;a href=&#34;http://solarbridgetech.com/contact-us/thank-you&#34; rel=&#34;nofollow&#34;&#62;http://solarbridgetech.com/contact-us/thank-you&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;My form is at &#60;a href=&#34;http://solarbridge.staging.wpengine.com/contact-us/contact-us/&#34; rel=&#34;nofollow&#34;&#62;http://solarbridge.staging.wpengine.com/contact-us/contact-us/&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;One work-around I've thought of is to actually create two separate forms and have the user identify themselves right away to determine which form to fill out, but I don't know if my client will be happy with that solution.
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
