<?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 logic on submit to page or redirect</title>
		<link>https://legacy.forums.gravityhelp.com/topic/conditional-logic-on-submit-to-page-or-redirect</link>
		<description>Gravity Support Forums Topic: Conditional logic on submit to page or redirect</description>
		<language>en-US</language>
		<pubDate>Sun, 19 Apr 2026 20:12:49 +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-logic-on-submit-to-page-or-redirect" rel="self" type="application/rss+xml" />

		<item>
			<title>Rob Harrell on "Conditional logic on submit to page or redirect"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/conditional-logic-on-submit-to-page-or-redirect#post-225625</link>
			<pubDate>Fri, 26 Apr 2013 12:56:35 +0000</pubDate>
			<dc:creator>Rob Harrell</dc:creator>
			<guid isPermaLink="false">225625@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Handling via priority support.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Jan Fox on "Conditional logic on submit to page or redirect"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/conditional-logic-on-submit-to-page-or-redirect#post-220540</link>
			<pubDate>Tue, 23 Apr 2013 04:55:21 +0000</pubDate>
			<dc:creator>Jan Fox</dc:creator>
			<guid isPermaLink="false">220540@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;No need to look at the form now, it's completely torn down, I've tried so many things trying to make it work.  :-(
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Jan Fox on "Conditional logic on submit to page or redirect"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/conditional-logic-on-submit-to-page-or-redirect#post-220128</link>
			<pubDate>Mon, 22 Apr 2013 23:37:47 +0000</pubDate>
			<dc:creator>Jan Fox</dc:creator>
			<guid isPermaLink="false">220128@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hello - It would be nice to get some help here, please.&#60;/p&#62;
&#60;p&#62;I migrated the site to a subdomain to work on it without interference on the main site. I also deactivated all plugins except for Gravity Forms and tested in Twenty Ten, Twenty Eleven and Twenty Twelve themes and still got this error message.&#60;/p&#62;
&#60;p&#62;Warning: Header may not contain more than a single header, new line detected. in /home/spmmemph/public_html/customer-review-app/wp-content/plugins/gravityforms/form_display.php on line 88&#60;/p&#62;
&#60;p&#62;Apparently it's Gravity Forms, not a plugin or my theme. &#60;/p&#62;
&#60;p&#62;LInk to test site: &#60;a href=&#34;http://customer-review-app.spmmemphis.com/yelp-review/&#34; rel=&#34;nofollow&#34;&#62;http://customer-review-app.spmmemphis.com/yelp-review/&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;Thanks
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Jan Fox on "Conditional logic on submit to page or redirect"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/conditional-logic-on-submit-to-page-or-redirect#post-216232</link>
			<pubDate>Sat, 20 Apr 2013 00:21:48 +0000</pubDate>
			<dc:creator>Jan Fox</dc:creator>
			<guid isPermaLink="false">216232@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I have followed the instructions from this post. &#60;a href=&#34;http://www.gravityhelp.com/forums/topic/terms-of-conditions?replies=13#post-7442&#34; rel=&#34;nofollow&#34;&#62;http://www.gravityhelp.com/forums/topic/terms-of-conditions?replies=13#post-7442&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;Link to form: &#60;a href=&#34;http://spmmemphis.com/customer-review-app/yelp-review/&#34; rel=&#34;nofollow&#34;&#62;http://spmmemphis.com/customer-review-app/yelp-review/&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;Note: I have four selections (poor, fair, good, excellent) but for the sake of getting this to work I have only used two selections (poor, good) but will want to use all four selections when completed (figured I may need an array but don't know how to do that). I will also have four forms like this, one for each review site (Yelp, Google, Yahoo, Bing), unless you can suggest an easier way.&#60;/p&#62;
&#60;p&#62;From GF post...&#60;/p&#62;
&#60;blockquote&#62;&#60;p&#62;You'll want to create a totally new file for the page template.. I called mine template_redirect.php in the root of the theme directory. Open that file, and add this..&#60;/p&#62;
&#60;/blockquote&#62;
&#60;p&#62;---Done&#60;/p&#62;
&#60;p&#62;This is the code used in my file named, template_redirect.php loaded to my themes directory.&#60;/p&#62;
&#60;p&#62;&#60;code&#62;&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;&#38;lt;?php&#60;br /&#62;
// redirect form based on the rating value passed in querystring&#60;br /&#62;
$rating = $_GET['rating'];&#60;/p&#62;
&#60;p&#62;	switch ($rating)&#60;br /&#62;
	{&#60;/p&#62;
&#60;p&#62;		case &#34;poor&#34;:&#60;br /&#62;
		// if poor redirect to the following page&#60;br /&#62;
		header(&#34;Location: &#60;a href=&#34;http://spmmemphis.com/customer-review-app/we-want-to-make-it-right/&#34; rel=&#34;nofollow&#34;&#62;http://spmmemphis.com/customer-review-app/we-want-to-make-it-right/&#60;/a&#62;&#34;);&#60;br /&#62;
		break;&#60;/p&#62;
&#60;p&#62;		case &#34;good&#34;:&#60;br /&#62;
		// if good redirect to the following page&#60;br /&#62;
		header(&#34;Location: &#60;a href=&#34;http://www.spmmemphis.yelp.com/&#34; rel=&#34;nofollow&#34;&#62;http://www.spmmemphis.yelp.com/&#60;/a&#62;&#34;);&#60;br /&#62;
		break;&#60;/p&#62;
&#60;p&#62;	}&#60;/p&#62;
&#60;p&#62;/*&#60;br /&#62;
Template Name: form terms redirect&#60;br /&#62;
*/&#60;/p&#62;
&#60;p&#62;?&#38;gt;&#60;br /&#62;
&#60;code&#62;&#60;/code&#62;&#60;/p&#62;
&#60;blockquote&#62;&#60;p&#62;Since we're using this simply for a redirect, we don't need anything else on the page. Of course, you'll configure the URL's to your actual destination pages.
&#60;/p&#62;&#60;/blockquote&#62;
&#60;p&#62;---Done&#60;/p&#62;
&#60;blockquote&#62;&#60;p&#62;Next, you'll want to go to &#34;add pages&#34;, create a new page then select the &#34;form terms redirect&#34; as the page template. Name the page &#34;redirect&#34; then save everything.&#60;/p&#62;
&#60;/blockquote&#62;
&#60;p&#62;---Done&#60;/p&#62;
&#60;blockquote&#62;&#60;p&#62;page settings&#60;/p&#62;
&#60;p&#62;Next, go to your form, click on the form settings at the top of the page, then the confirmation tab. Select the &#34;redirect&#34; option under the confirmation message heading. There you will put in the URL of the page you want to redirect the form to.. in this case, to the page you just created so something like.. &#34;http://www.yourdomain.com/redirect/&#34;&#60;/p&#62;
&#60;/blockquote&#62;
&#60;p&#62;---Done&#60;/p&#62;
&#60;blockquote&#62;&#60;p&#62;Then, you'll need to check the &#34;Pass Field Data Via Query String&#34; option and build your query string. You have to manually add the first portion &#34;agree=&#34; then select from the drop down list directly above that field and find the &#34;agree&#34; field in your form, click on that and it will insert the proper token to populate the query string.&#60;/p&#62;
&#60;/blockquote&#62;
&#60;p&#62;---Done&#60;/p&#62;
&#60;p&#62;Link to sample of the form settings -- &#60;a href=&#34;http://spmmemphis.com/customer-review-app/sample-gravity-forms-settings/&#34; rel=&#34;nofollow&#34;&#62;http://spmmemphis.com/customer-review-app/sample-gravity-forms-settings/&#60;/a&#62;&#60;/p&#62;
&#60;blockquote&#62;&#60;p&#62;Save the form settings, then go test your form. The form should redirect to the confirmation page you created, then based on the agree field value passed to it, will redirect to whatever page you want from there.&#60;/p&#62;
&#60;/blockquote&#62;
&#60;p&#62;---Done&#60;/p&#62;
&#60;p&#62;Now i get this error message: Warning: Header may not contain more than a single header, new line detected. in /home/spmmemph/public_html/wp-content/plugins/gravityforms/form_display.php on line 88&#60;/p&#62;
&#60;p&#62;Researching that now.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Jan Fox on "Conditional logic on submit to page or redirect"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/conditional-logic-on-submit-to-page-or-redirect#post-216040</link>
			<pubDate>Fri, 19 Apr 2013 20:13:14 +0000</pubDate>
			<dc:creator>Jan Fox</dc:creator>
			<guid isPermaLink="false">216040@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Can someone please help?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Jan Fox on "Conditional logic on submit to page or redirect"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/conditional-logic-on-submit-to-page-or-redirect#post-215006</link>
			<pubDate>Fri, 19 Apr 2013 00:12:51 +0000</pubDate>
			<dc:creator>Jan Fox</dc:creator>
			<guid isPermaLink="false">215006@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I have looked at numerous examples in the documentation and forum but can't seem to put together the right code. The form can either have conditional logic to enable the poor/fair ratings name and phone #  to be completed on the first form or sent to another page with that form (either way is fine, I have the first example set up now). I have the values for ratings poor/fair set to 1.&#60;/p&#62;
&#60;p&#62;The conditional logic for the second part for ratings good/excellent (values set to 2) need to be redirected to one of the review sites. I can have separate forms for this or use one form with a radio button so the redirect will know which url to use. I do not have this set up yet, not sure what to do.&#60;/p&#62;
&#60;p&#62;Thanks again.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Jan Fox on "Conditional logic on submit to page or redirect"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/conditional-logic-on-submit-to-page-or-redirect#post-214847</link>
			<pubDate>Thu, 18 Apr 2013 22:08:35 +0000</pubDate>
			<dc:creator>Jan Fox</dc:creator>
			<guid isPermaLink="false">214847@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I'm building a customer review app. If the ratings are poor or fair, I have conditional logic set up to ask for name and phone number and want that information passed through via email and redirect to a page with the information for contacting us and to let the customer know we want to make things right.&#60;/p&#62;
&#60;p&#62;When the ratings are good to excellent, I'd like the rating passed through via email and a redirect to either Yelp, Google, Bing or Yahoo according to the form being used. I will have a form for each review site or if it's easier a radio button listing the options to enter a review with those choices.&#60;/p&#62;
&#60;p&#62;I hope I explained this well enough. Thank you for your help.
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
