<?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: Dynamic Confirmation Message doesnt work.</title>
		<link>https://legacy.forums.gravityhelp.com/topic/dynamic-confirmation-message-doesnt-work</link>
		<description>Gravity Support Forums Topic: Dynamic Confirmation Message doesnt work.</description>
		<language>en-US</language>
		<pubDate>Sun, 12 Apr 2026 12:42:44 +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/dynamic-confirmation-message-doesnt-work" rel="self" type="application/rss+xml" />

		<item>
			<title>ykotlar on "Dynamic Confirmation Message doesnt work."</title>
			<link>https://legacy.forums.gravityhelp.com/topic/dynamic-confirmation-message-doesnt-work#post-43758</link>
			<pubDate>Mon, 12 Dec 2011 10:29:07 +0000</pubDate>
			<dc:creator>ykotlar</dc:creator>
			<guid isPermaLink="false">43758@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi, that is just my temporary solution, since its rush. And still looking for fix.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "Dynamic Confirmation Message doesnt work."</title>
			<link>https://legacy.forums.gravityhelp.com/topic/dynamic-confirmation-message-doesnt-work#post-43752</link>
			<pubDate>Mon, 12 Dec 2011 10:16:43 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">43752@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;You seem to be working through all your issues.  Do you need help with this one though or are you OK with your solution?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>ykotlar on "Dynamic Confirmation Message doesnt work."</title>
			<link>https://legacy.forums.gravityhelp.com/topic/dynamic-confirmation-message-doesnt-work#post-43749</link>
			<pubDate>Mon, 12 Dec 2011 10:05:22 +0000</pubDate>
			<dc:creator>ykotlar</dc:creator>
			<guid isPermaLink="false">43749@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Ok, end up using the redirect. Added hidden field which hold page ID parameter from URL, and then re-added the captured ID to redirect URL parameter. Though need to do it in each form.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>ykotlar on "Dynamic Confirmation Message doesnt work."</title>
			<link>https://legacy.forums.gravityhelp.com/topic/dynamic-confirmation-message-doesnt-work#post-43743</link>
			<pubDate>Mon, 12 Dec 2011 08:09:35 +0000</pubDate>
			<dc:creator>ykotlar</dc:creator>
			<guid isPermaLink="false">43743@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi, I tried to modify form confirmation message, using pre_render and pre_submission filters. And last i tried gform_confirmation filter, still doesnt work. Its under function.php&#60;/p&#62;
&#60;p&#62;$form_gf_ID is global form ID supplied by the page where it was attached. And it is correctly rendering and submitting. $program_id is global ID of the page where the form was attached.&#60;/p&#62;
&#60;p&#62;Now, we need to have each form success message to have &#34;Make Payment&#34; upon finishing registration. And seems any filter doesnt work. (Neither Ajax on or off)&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;add_filter(&#38;quot;gform_confirmation&#38;quot;, &#38;quot;custom_gfkpcconfirmation&#38;quot;, 10, 4);

function custom_gfkpcconfirmation($confirmation, $form, $lead, $ajax){
	global $form_gf_ID, $program_id;
	if($form[&#38;#39;id&#38;#39;] == $form_gf_ID){
        $confirmation = &#38;#39;&#38;lt;div class=&#38;quot;successregclass&#38;quot;&#38;gt;&#38;lt;h2&#38;gt; Registration Successful! &#38;lt;/h2&#38;gt;&#38;lt;div class=&#38;quot;buybuttonp&#38;quot;&#38;gt;&#38;#39;.get_the_buy_button($program_id).&#38;#39;
	&#38;lt;ul class=&#38;quot;content-details&#38;quot;&#38;gt;

&#38;lt;li&#38;gt;&#38;lt;span class=&#38;quot;name&#38;quot;&#38;gt;Cost:&#38;lt;/span&#38;gt; &#38;lt;span  class=&#38;quot;names&#38;quot;&#38;gt;&#38;#39;.get_the_currency().get_post_meta($program_id, &#38;#39;Program_Cost&#38;#39;, true).&#38;#39;&#38;lt;/span&#38;gt;&#38;lt;/li&#38;gt;
	&#38;#39;;
    }

    return $confirmation;
}

add_shortcode(&#38;#39;show_registration&#38;#39;, &#38;#39;gravityshowreg&#38;#39;);

function gravityshowreg($att){

			global $form_gf_ID, $program_id, $include_baseform;
			if($form_gf_ID&#38;gt;0)	gravity_form($form_gf_ID, true, true, false, &#38;#39;&#38;#39;, true);

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

	</channel>
</rss>
