<?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: How to insert a new confirmation message via &#039;gform_pre_submission&#039;</title>
		<link>https://legacy.forums.gravityhelp.com/topic/how-to-insert-a-new-confirmation-message-via-gform_pre_submission</link>
		<description>Gravity Support Forums Topic: How to insert a new confirmation message via &#039;gform_pre_submission&#039;</description>
		<language>en-US</language>
		<pubDate>Tue, 21 Apr 2026 11:31:02 +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/how-to-insert-a-new-confirmation-message-via-gform_pre_submission" rel="self" type="application/rss+xml" />

		<item>
			<title>rtCamp on "How to insert a new confirmation message via &#039;gform_pre_submission&#039;"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/how-to-insert-a-new-confirmation-message-via-gform_pre_submission#post-53670</link>
			<pubDate>Wed, 28 Mar 2012 08:06:50 +0000</pubDate>
			<dc:creator>rtCamp</dc:creator>
			<guid isPermaLink="false">53670@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I'm using gform_pre_submission to do some calculations on the values from my form after it's submitted. I want to display this result in my confirmation message. I tried replacing the form's confirmation message by assigning my result value to 'message' in the 'confirmation' array. But no luck!&#60;br /&#62;
Any way I can achieve this?&#60;br /&#62;
Note: I know about the gform_confirmation filter, but I don't know how to use it in my case.&#60;br /&#62;
Here's what I tried:&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;add_action(&#38;#39;gform_pre_submission&#38;#39;, &#38;#39;my_processing&#38;#39;);
function my_processing($form){
    //add up the values
    $val = $val1+$val2....

    //what I tried
    $form[&#38;#39;confirmation&#38;#39;][&#38;#39;message&#38;#39;] = &#38;#39;The answer is:- &#38;#39;.$val;
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Please reply guys!
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
