<?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: Linking Forms Conditionally</title>
		<link>https://legacy.forums.gravityhelp.com/topic/linking-forms-conditionally</link>
		<description>Gravity Support Forums Topic: Linking Forms Conditionally</description>
		<language>en-US</language>
		<pubDate>Thu, 23 Apr 2026 09:08: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/linking-forms-conditionally" rel="self" type="application/rss+xml" />

		<item>
			<title>David Peralty on "Linking Forms Conditionally"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/linking-forms-conditionally#post-55678</link>
			<pubDate>Wed, 18 Apr 2012 11:37:00 +0000</pubDate>
			<dc:creator>David Peralty</dc:creator>
			<guid isPermaLink="false">55678@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Glad to hear it all worked out. Loved the intro to your last response.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>ogregeek4u on "Linking Forms Conditionally"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/linking-forms-conditionally#post-55674</link>
			<pubDate>Wed, 18 Apr 2012 11:24:02 +0000</pubDate>
			<dc:creator>ogregeek4u</dc:creator>
			<guid isPermaLink="false">55674@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;OH SNAP SON! I finally got it! Wow... I was applying the custom template Kyle suggest to the wrong page &#38;gt;&#38;lt;. Dude, thank you so much- figuring out the workflow of the client's complicated forms was giving me a headache... getting this to work just brightened my day. Thank you so much!
&#60;/p&#62;</description>
		</item>
		<item>
			<title>ogregeek4u on "Linking Forms Conditionally"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/linking-forms-conditionally#post-55650</link>
			<pubDate>Wed, 18 Apr 2012 10:15:01 +0000</pubDate>
			<dc:creator>ogregeek4u</dc:creator>
			<guid isPermaLink="false">55650@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Just a quick follow up to this issue- I tried Kyle's suggestion (thanks again!), but it was not accomplishing what I was hoping it would or I was doing it wrong. &#60;/p&#62;
&#60;p&#62;As an alternative to Kyle's method, I was thinking of coding several 'Submit' buttons on a form and using Conditional Logic to determine when a specific button would appear. I read on &#60;a href=&#34;http://www.gravityhelp.com/forums/topic/using-a&#34; rel=&#34;nofollow&#34;&#62;http://www.gravityhelp.com/forums/topic/using-a&#60;/a&#62; that the submit button is &#38;lt;button type=&#34;submit&#34;&#38;gt;. Would I be able to use a HTML block, use input for the submit button and at the same time insert code to link to the appropriate form? Pretty much just remove the default 'Submit' button, and replace it with a custom one that would submit the form (as the submit button currently does) and link to the next form (based on Conditional Logic). &#60;/p&#62;
&#60;p&#62;What I am dealing with is about 18 forms, each of which the user needs to answer questions. These questions have several choices, and each choice helps 'define' the need of the user. Each question has several choices and based on how the user is 'defined' will alter which of the forms that user will be directed to next. The tricky part that I am working through, is that a few of the forms have several of these 'defining' questions, so the workflow is pretty tricky. &#60;/p&#62;
&#60;p&#62;If I could use the HTML block to create my own 'Submit' buttons, and determine when a particular 'Submit' button appears I feel I would be able to accomplish this project. Even if this fix is short-term that would be fine, as the client needs to update their system before I can do a more elegant fix (like Kyle's suggestion, etc.). Thanks!
&#60;/p&#62;</description>
		</item>
		<item>
			<title>ogregeek4u on "Linking Forms Conditionally"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/linking-forms-conditionally#post-55446</link>
			<pubDate>Tue, 17 Apr 2012 01:42:36 +0000</pubDate>
			<dc:creator>ogregeek4u</dc:creator>
			<guid isPermaLink="false">55446@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Thanks Kyle. I will try this in the morning!
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Rob Harrell on "Linking Forms Conditionally"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/linking-forms-conditionally#post-55426</link>
			<pubDate>Mon, 16 Apr 2012 17:47:52 +0000</pubDate>
			<dc:creator>Rob Harrell</dc:creator>
			<guid isPermaLink="false">55426@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Thanks for posting your solution Kyle.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>kyle on "Linking Forms Conditionally"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/linking-forms-conditionally#post-55417</link>
			<pubDate>Mon, 16 Apr 2012 17:04:19 +0000</pubDate>
			<dc:creator>kyle</dc:creator>
			<guid isPermaLink="false">55417@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;When I've had to do this, I just setup a redirect template... so something like:&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://mysite.com/redirect&#34; rel=&#34;nofollow&#34;&#62;http://mysite.com/redirect&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;and set my form to go there on submit (and pass all (or the ones you need to check) the values in the query string.  The landing url ends up looking like this:&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://mysite.com/redirect/?q1=Felix&#38;amp;q2=Oscar&#34; rel=&#34;nofollow&#34;&#62;http://mysite.com/redirect/?q1=Felix&#38;amp;q2=Oscar&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;Then I create a template-redirect.php file, and use it for the redirect page.  That page template looks like:&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;?php
/*
Template Name: Form Redirect
*/

$q1 = $_GET[&#38;#39;q1&#38;#39;] ; // where q1 is what you passed in the query string
$q2 = $_GET[&#38;#39;q2&#38;#39;] ;

// I use else, but depending on your data you could use a switch or whathaveyou.

if ($q1 == &#38;#39;Felix&#38;#39; &#38;amp;&#38;amp; $q2 == &#38;#39;Oscar&#38;#39;)
  wp_redirect(&#38;#39;http://mysite.com/form1a&#38;#39;);
else
  wp_redirect(&#38;#39;http://mysite.com/form1b&#38;#39;);

?&#38;gt;&#60;/code&#62;&#60;/pre&#62;</description>
		</item>
		<item>
			<title>ogregeek4u on "Linking Forms Conditionally"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/linking-forms-conditionally#post-55407</link>
			<pubDate>Mon, 16 Apr 2012 16:37:56 +0000</pubDate>
			<dc:creator>ogregeek4u</dc:creator>
			<guid isPermaLink="false">55407@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Is there a way to generate a 'Submit' button at the end of a form that will link users to another form based on choices they made in the form? For example, if you have 2 questions, is there a way to generate a unique 'Submit' button if the user answers a certain way in Question 1 and Questions 2, but another 'Submit' button if a user answers those same questions differently? &#60;/p&#62;
&#60;p&#62;I am interested in finding a way to dynamically link one form to another, based on conditional statements that will guide the user to different forms based on their questions on the current form. I figure the only way to do this is by generating a button that is unique to set of variables and add code for that button to link to a specific page (with the corresponding form on it). I appreciate any help. Thanks!
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
