<?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: Use Shortcode to assign a Redirect/Confirmation page</title>
		<link>https://legacy.forums.gravityhelp.com/topic/use-shortcode-to-assign-a-redirectconfirmation-page</link>
		<description>Gravity Support Forums Topic: Use Shortcode to assign a Redirect/Confirmation page</description>
		<language>en-US</language>
		<pubDate>Sat, 04 Apr 2026 14:21:39 +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/use-shortcode-to-assign-a-redirectconfirmation-page" rel="self" type="application/rss+xml" />

		<item>
			<title>Chris Hajer on "Use Shortcode to assign a Redirect/Confirmation page"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/use-shortcode-to-assign-a-redirectconfirmation-page#post-97521</link>
			<pubDate>Sat, 01 Dec 2012 00:54:09 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">97521@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;You will get $redirect as one of you form field values.  What field number is it in your form? If it were field 8, for example, you would do this:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;[php]
$redirect = $entry[8];&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;If that field holds the full URL, that is all you will need to do. If you are just using a slug in the shortcode (which may be easier for your administrators), you might have to built your URL, like this&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;[php]
$redirect = &#38;#39;http://www.example.com/&#38;#39; . $entry[8];&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Let us know what value your shortcode will hold for 'redirect' and let us know what field number it is, if you still need help.  Thank you.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Lars Faye on "Use Shortcode to assign a Redirect/Confirmation page"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/use-shortcode-to-assign-a-redirectconfirmation-page#post-97387</link>
			<pubDate>Fri, 30 Nov 2012 15:28:25 +0000</pubDate>
			<dc:creator>Lars Faye</dc:creator>
			<guid isPermaLink="false">97387@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;So I set up a field with the value of 'redirect' and can populate it with the shortcode.  My next question is how do I detect the redirect field and then drop that value into the confirmation filter?&#60;/p&#62;
&#60;p&#62;I imagine it would look something like this, but I do not know how to establish the value of $redirect:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;add_filter(&#38;quot;gform_confirmation&#38;quot;, &#38;quot;custom_confirmation&#38;quot;, 10, 4);
function custom_confirmation($confirmation, $form, $lead, $ajax){

 $confirmation = array(&#38;quot;redirect&#38;quot; =&#38;gt;$redirect);
return $confirmation;
}&#60;/code&#62;&#60;/pre&#62;</description>
		</item>
		<item>
			<title>Lars Faye on "Use Shortcode to assign a Redirect/Confirmation page"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/use-shortcode-to-assign-a-redirectconfirmation-page#post-96297</link>
			<pubDate>Tue, 27 Nov 2012 19:38:32 +0000</pubDate>
			<dc:creator>Lars Faye</dc:creator>
			<guid isPermaLink="false">96297@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Essentially, the client has 12 landing pages (and growing) running the same form with the same fields, except each form goes to a different redirect page once the form is completed and submitted.  As it stands, they need to duplicate this form every time they want to embed the form on a page but only want to change the destination of the confirmation page.&#60;/p&#62;
&#60;p&#62;You asked:&#60;/p&#62;
&#60;p&#62;&#34;Are you saying you would like the shortcode you embed in your page to support the inclusion of a URL for the confirmation redirect?&#34;&#60;/p&#62;
&#60;p&#62;Yes, that is exactly it.  :)
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "Use Shortcode to assign a Redirect/Confirmation page"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/use-shortcode-to-assign-a-redirectconfirmation-page#post-96027</link>
			<pubDate>Tue, 27 Nov 2012 03:53:53 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">96027@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Please explain how you would like to use this.  Maybe we can come up with a solution.  Are you saying you would like the shortcode you embed in your page to support the inclusion of a URL for the confirmation redirect?&#60;/p&#62;
&#60;p&#62;If that is the case, you could always add a hidden field to your form, allow it to be populated dynamically, then populate that field in the shortcode using the method found here:&#60;br /&#62;
&#60;a href=&#34;http://www.gravityhelp.com/documentation/page/Using_Dynamic_Population#Shortcode&#34; rel=&#34;nofollow&#34;&#62;http://www.gravityhelp.com/documentation/page/Using_Dynamic_Population#Shortcode&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;Now that you have the URL or at least the changed part of the URL ( you could probably skip the http and the domain name, and just put that together later ) you could change the confirmation redirect to use the value in this field (be sure to include a default value for this field so that there is always a redirect URL even when the value is not pre-populated.)  You could change the confirmation URL with the gform_confirmation filter.&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://www.gravityhelp.com/documentation/page/Gform_confirmation&#34; rel=&#34;nofollow&#34;&#62;http://www.gravityhelp.com/documentation/page/Gform_confirmation&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;A little bit of code up front would make this much easier for your client, I believe.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Lars Faye on "Use Shortcode to assign a Redirect/Confirmation page"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/use-shortcode-to-assign-a-redirectconfirmation-page#post-95880</link>
			<pubDate>Mon, 26 Nov 2012 20:26:34 +0000</pubDate>
			<dc:creator>Lars Faye</dc:creator>
			<guid isPermaLink="false">95880@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I saw this has been requested before:&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://www.gravityhelp.com/forums/topic/can-i-give-the-redirect-page-in-the-shortcode&#34; rel=&#34;nofollow&#34;&#62;http://www.gravityhelp.com/forums/topic/can-i-give-the-redirect-page-in-the-shortcode&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;Basically, my client has one lead form that they have to duplicate every time just to change the redirect/confirmation page.  This is naturally causing a lot of trouble just for this one change.  Can the shortcode be used to assign a confirmation page?
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
