<?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: Display result variable in confirmation message?</title>
		<link>https://legacy.forums.gravityhelp.com/topic/display-result-variable-in-confirmation-message</link>
		<description>Gravity Support Forums Topic: Display result variable in confirmation message?</description>
		<language>en-US</language>
		<pubDate>Mon, 20 Apr 2026 13:29:43 +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/display-result-variable-in-confirmation-message" rel="self" type="application/rss+xml" />

		<item>
			<title>Chris Hajer on "Display result variable in confirmation message?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/display-result-variable-in-confirmation-message#post-36161</link>
			<pubDate>Sun, 25 Sep 2011 00:13:37 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">36161@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Regarding &#34;confirmation message only shows required fields&#34;:&#60;/p&#62;
&#60;p&#62;I'm not able to verify that right now, but if that's the case, I usually use a drop down in another field where it will populate (like the content template or something) then copy the merge tag that was generated there, and paste it into the confirmation area.  I think I ran into that before and worked around it but I can't get at my server right now.  Once that's done, delete from whatever area you were using to generate the merge tag (since you really didn't want it there.)  I try not to guess at the merge tags and always use the generated drop down to get it exactly right.&#60;/p&#62;
&#60;p&#62;The 10,2 are WordPress specific.  10 is the priority that the filter or action runs at.  The 2 is the number of arguments the function accepts.  As I type this, I realize that's wrong (I copied from your  example with gform_post_submission which DOES accept 2 arguments.)&#60;/p&#62;
&#60;p&#62;Here's the updated code:&#60;br /&#62;
&#60;a href=&#34;http://pastebin.com/5MQkXEmR&#34; rel=&#34;nofollow&#34;&#62;http://pastebin.com/5MQkXEmR&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;No priority and no number of arguments.  The gform_pre_submission hook is &#60;a href=&#34;http://www.gravityhelp.com/documentation/page/Gform_pre_submission&#34; rel=&#34;nofollow&#34;&#62;documented here&#60;/a&#62;, in case I made any more mistakes.&#60;/p&#62;
&#60;p&#62;Here's the explanation of those numbers from WordPress:&#60;br /&#62;
&#60;a href=&#34;http://codex.wordpress.org/Function_Reference/add_action&#34; rel=&#34;nofollow&#34;&#62;http://codex.wordpress.org/Function_Reference/add_action&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;Sorry about the error.  I think if you can get the merge tag correct for your confirmation message, you'll be in good shape.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>bleckett on "Display result variable in confirmation message?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/display-result-variable-in-confirmation-message#post-36159</link>
			<pubDate>Sat, 24 Sep 2011 23:34:39 +0000</pubDate>
			<dc:creator>bleckett</dc:creator>
			<guid isPermaLink="false">36159@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Thanks Chris - I think the gform_pre_submission is what I was looking for. I was using hidden fields, but nothing was populating. &#60;/p&#62;
&#60;p&#62;Also, I noticed that the drop down for the confirmation message only shows required fields. The hidden fields do not have confirmation as required parameter. I guess I can still add the field using the same syntax as other (required) fields by knowing the field IDs?&#60;/p&#62;
&#60;p&#62;BTW - just on a side note, what do the 'numbers' mean in the add_action function (and other functions). For example... some add_actions use 10, 2 in the docs, others don't have them at all. Is it something I need to be concerned about? (I couldn't find anything in the docs - FYI - I am using 1.6 beta).&#60;/p&#62;
&#60;p&#62;Thanks again for your help.&#60;/p&#62;
&#60;p&#62;Blaine
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "Display result variable in confirmation message?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/display-result-variable-in-confirmation-message#post-36137</link>
			<pubDate>Sat, 24 Sep 2011 14:06:31 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">36137@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;You can store the link in the entry if you like.  You have a start already using the gform_post_submission hook (runs after validation, before the entry is stored) but I think you want to use the &#60;a href=&#34;http://www.gravityhelp.com/documentation/page/Gform_pre_submission&#34; rel=&#34;nofollow&#34;&#62;gform_pre_submission&#60;/a&#62; hook (runs before the entry is stored.)&#60;/p&#62;
&#60;p&#62;Add a hidden form field in the form builder.   Call it &#34;The file&#34; or whatever (it will be seen in the admin only.) Get the ID of that field.  Then assign $the_form to that field using the pre_submission hook.&#60;/p&#62;
&#60;p&#62;Your code might look like this:&#60;br /&#62;
[UPDATED LINK 24 September 2011]&#60;br /&#62;
&#60;a href=&#34;http://pastebin.com/5MQkXEmR&#34; rel=&#34;nofollow&#34;&#62;http://pastebin.com/5MQkXEmR&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;Once you have the file information in your hidden field, use the drop down in the confirmation editor to insert that field into your confirmation message.  The confirmation message might look like this:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;[html]
&#38;lt;p style=&#38;quot;text-align:left;&#38;quot;&#38;gt;Dear {Name (First):1.3},&#38;lt;/p&#38;gt;
&#38;lt;p style=&#38;quot;text-align:left;&#38;quot;&#38;gt;Your file is at {The file:6}&#38;lt;/p&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Don't try to hand code the merge tag for the &#34;The file&#34; field: use the drop down.&#60;/p&#62;
&#60;p&#62;Let me know if you need more help working that out.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>bleckett on "Display result variable in confirmation message?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/display-result-variable-in-confirmation-message#post-36106</link>
			<pubDate>Fri, 23 Sep 2011 20:58:15 +0000</pubDate>
			<dc:creator>bleckett</dc:creator>
			<guid isPermaLink="false">36106@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Is there a way to add a value to the confirmation message after I get information back from a post?&#60;br /&#62;
For example, in the functions.php I would add something like&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;add_action(&#38;quot;gform_post_submission&#38;quot;, &#38;quot;send_post&#38;quot;, 10, 2);
function send_post$entry, $form)  {
 $user_fname = $entry[&#38;#39;1.3&#38;#39;];
 $user_password = $entry[&#38;#39;2&#38;#39;];
 $post_data= array(&#38;#39;name&#38;#39; =&#38;gt; $user_fname, &#38;#39;pwd&#38;#39; =&#38;gt; user_password);
 $client = new SoapClient(&#38;quot;my.wsdl&#38;quot;);
 $the_file = $client-&#38;gt;getFileName($post_data);

}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;I would like to display the the_file in the confirmation message.&#60;br /&#62;
Can I use the gform_update_meta or is there another way? &#60;/p&#62;
&#60;p&#62;Then call it in the confirmation message?&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;p align=&#38;quot;left&#38;quot;&#38;gt;
Dear {Name (First):1.3},
&#38;lt;/p&#38;gt;
&#38;lt;p align=&#38;quot;left&#38;quot;&#38;gt;
You file is at {the_file}
&#38;lt;/p&#38;gt;&#60;/code&#62;&#60;/pre&#62;</description>
		</item>

	</channel>
</rss>
