<?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: gform_confirmation checkbox</title>
		<link>https://legacy.forums.gravityhelp.com/topic/gform_confirmation-checkbox</link>
		<description>Gravity Support Forums Topic: gform_confirmation checkbox</description>
		<language>en-US</language>
		<pubDate>Fri, 17 Apr 2026 07:44:18 +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/gform_confirmation-checkbox" rel="self" type="application/rss+xml" />

		<item>
			<title>David Peralty on "gform_confirmation checkbox"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/gform_confirmation-checkbox#post-105425</link>
			<pubDate>Fri, 21 Dec 2012 13:05:01 +0000</pubDate>
			<dc:creator>David Peralty</dc:creator>
			<guid isPermaLink="false">105425@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I'm glad you were able to figure it out.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>tberwald on "gform_confirmation checkbox"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/gform_confirmation-checkbox#post-105389</link>
			<pubDate>Fri, 21 Dec 2012 11:29:19 +0000</pubDate>
			<dc:creator>tberwald</dc:creator>
			<guid isPermaLink="false">105389@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Nevermind - got it. &#60;/p&#62;
&#60;p&#62;Hopefully this will help someone else - you have to put the value inside the $lead array in quotes:&#60;/p&#62;
&#60;p&#62;so 	$remember = $lead['3.1']; &#60;/p&#62;
&#60;p&#62;worked.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>tberwald on "gform_confirmation checkbox"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/gform_confirmation-checkbox#post-105370</link>
			<pubDate>Fri, 21 Dec 2012 10:35:31 +0000</pubDate>
			<dc:creator>tberwald</dc:creator>
			<guid isPermaLink="false">105370@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Can anyone help on this? Trying to get the value out but not sure what to put inside the $lead[WHAT GOES HERE] variable...
&#60;/p&#62;</description>
		</item>
		<item>
			<title>tberwald on "gform_confirmation checkbox"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/gform_confirmation-checkbox#post-105109</link>
			<pubDate>Thu, 20 Dec 2012 17:38:57 +0000</pubDate>
			<dc:creator>tberwald</dc:creator>
			<guid isPermaLink="false">105109@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I created an extremely basic log table because I couldn't get print_r to work correctly. This is the serialized array when the checkbox is checked. You can see there is a value there.&#60;/p&#62;
&#60;p&#62;a:21:{s:2:&#34;id&#34;;s:3:&#34;117&#34;;s:7:&#34;form_id&#34;;s:1:&#34;3&#34;;s:12:&#34;date_created&#34;;s:19:&#34;2012-12-20 21:35:19&#34;;s:10:&#34;is_starred&#34;;i:0;s:7:&#34;is_read&#34;;i:0;s:2:&#34;ip&#34;;s:13:&#34;50.200.57.190&#34;;s:10:&#34;source_url&#34;;s:32:&#34;http://www.drumblebee.com/login/&#34;;s:7:&#34;post_id&#34;;N;s:8:&#34;currency&#34;;s:3:&#34;USD&#34;;s:14:&#34;payment_status&#34;;N;s:12:&#34;payment_date&#34;;N;s:14:&#34;transaction_id&#34;;N;s:14:&#34;payment_amount&#34;;N;s:12:&#34;is_fulfilled&#34;;N;s:10:&#34;created_by&#34;;N;s:16:&#34;transaction_type&#34;;N;s:10:&#34;user_agent&#34;;s:108:&#34;Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.11 (KHTML, like Gecko) Chrome/23.0.1271.97 Safari/537.11&#34;;s:6:&#34;status&#34;;s:6:&#34;active&#34;;i:1;s:5:&#34;admin&#34;;i:2;s:13:&#34;sdkjbwiojubss dsd&#34;;s:3:&#34;3.1&#34;;s:1:&#34;1&#34;;}
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "gform_confirmation checkbox"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/gform_confirmation-checkbox#post-105082</link>
			<pubDate>Thu, 20 Dec 2012 16:26:45 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">105082@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;If you add a print_r($entry) to your code, as the first line of your function, that should be dumped to the screen.  You may need to view the source of the page to see it.  If that does not work, we can always set up a log to log it there, but for quick and dirty testing, you can just print_r the entry and it should appear on screen.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>tberwald on "gform_confirmation checkbox"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/gform_confirmation-checkbox#post-105071</link>
			<pubDate>Thu, 20 Dec 2012 16:11:07 +0000</pubDate>
			<dc:creator>tberwald</dc:creator>
			<guid isPermaLink="false">105071@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;How would I do that? It displays the confirmation page after I hit submit on the form.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "gform_confirmation checkbox"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/gform_confirmation-checkbox#post-105063</link>
			<pubDate>Thu, 20 Dec 2012 15:53:40 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">105063@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Can you print_r or var_dump the $lead and see what the value of $lead[3] is as a debugging step?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>tberwald on "gform_confirmation checkbox"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/gform_confirmation-checkbox#post-105060</link>
			<pubDate>Thu, 20 Dec 2012 15:46:20 +0000</pubDate>
			<dc:creator>tberwald</dc:creator>
			<guid isPermaLink="false">105060@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;add_action(&#34;gform_confirmation_3&#34;, &#34;custom_confirmation&#34;, 10, 4);&#60;/p&#62;
&#60;p&#62;The thing is, I can get the other values from the form within the custom_confirmation function.&#60;/p&#62;
&#60;p&#62;$lead[1] and $lead[2] store the correct values.&#60;/p&#62;
&#60;p&#62;And if I go into the admin I can see that the checkbox value is stored:&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://screencast.com/t/An9jlZEF9sm&#34; rel=&#34;nofollow&#34;&#62;http://screencast.com/t/An9jlZEF9sm&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;Thanks again!
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "gform_confirmation checkbox"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/gform_confirmation-checkbox#post-105050</link>
			<pubDate>Thu, 20 Dec 2012 15:28:18 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">105050@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;What did you hook that function to?  Looks like we're missing at least one line of code.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>tberwald on "gform_confirmation checkbox"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/gform_confirmation-checkbox#post-105033</link>
			<pubDate>Thu, 20 Dec 2012 14:58:37 +0000</pubDate>
			<dc:creator>tberwald</dc:creator>
			<guid isPermaLink="false">105033@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I'm trying to display a conditional confirmation message based on a checkbox being ticked or not in my form. I've searched the forums for this answer and cannot seem to find it.&#60;/p&#62;
&#60;p&#62;Here is the code:&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;function custom_confirmation($confirmation, $form, $lead, $ajax){
	if (isset($lead[3]) &#38;amp;&#38;amp; $lead[3] == 1) {
                 $confirmation = array(&#38;quot;redirect&#38;quot; =&#38;gt;&#38;quot;http://www.drumblebee.com/login?error=youhaveanerror&#38;quot;);}
        else {$confirmation = array(&#38;quot;redirect&#38;quot; =&#38;gt;&#38;quot;http://www.drumblebee.com/login/&#38;quot;);}
return $confirmation;
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;The problem is despite me checking (or unchecking) the box, the $lead does not seem to recognize the form value.&#60;/p&#62;
&#60;p&#62;The form code is:&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;input name=&#38;#39;input_3.1&#38;#39; type=&#38;#39;checkbox&#38;#39;  value=&#38;#39;1&#38;#39;  id=&#38;#39;choice_3_1&#38;#39; tabindex=&#38;#39;3&#38;#39;  /&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Any help would be appreciated. I'm sure it's something very small I'm missing.&#60;/p&#62;
&#60;p&#62;Thanks,&#60;br /&#62;
Tony
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
