<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Unique Thank You page based on form checkbox in CMS Development</title>
    <link>https://community.hubspot.com/t5/CMS-Development/Unique-Thank-You-page-based-on-form-checkbox/m-p/206327#M8212</link>
    <description>&lt;P&gt;&lt;FONT color="#999999"&gt;&lt;STRONG&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="_hubspot-button-accept-as-solution-gif-v00.gif" style="width: 300px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/10050i6024F3877E1DFF1A/image-size/large?v=v2&amp;amp;px=999" role="button" title="_hubspot-button-accept-as-solution-gif-v00.gif" alt="_hubspot-button-accept-as-solution-gif-v00.gif" /&gt;&lt;/span&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Q&lt;/STRONG&gt;: Redirect to External URL Based on Form Field value?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Short A&lt;/STRONG&gt;: Not currently native HubSpot functionality.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Longer A&lt;/STRONG&gt;:&lt;/P&gt;&lt;P&gt;This quesiton has been asked / answered a few times to varying degrees. You may find the following threads helpful.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Note: some of the threads contain solutions whose functionality may now depend on your HubSpot plan.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- see &lt;A href="https://community.hubspot.com/t5/Conversion-Tools/Redirect-to-External-URL-Based-on-Form-Field/m-p/183626#M1178" target="_blank"&gt;Redirect to External URL Based on Form Field&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;- see &lt;A href="https://community.hubspot.com/t5/Content-Design-Questions/Customize-Form-Redirect-based-on-checkbox-value/m-p/28406#M2761" target="_blank"&gt;Customize Form - Redirect based on checkbox value&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Always happy to help you build on HubSpot.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best,&lt;BR /&gt;Frank&lt;/P&gt;&lt;HR /&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hubspot-solutions-signature-mfrankjohnson-v05.png" style="width: 378px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/11555i60BB289BDA5DD964/image-size/large?v=v2&amp;amp;px=999" role="button" title="hubspot-solutions-signature-mfrankjohnson-v05.png" alt="hubspot-solutions-signature-mfrankjohnson-v05.png" /&gt;&lt;/span&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.mfrankjohnson.com/?utm_source=hs-forum" target="_blank"&gt;www.MFrankJohnson.com&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;FONT color="#FF9900"&gt;&lt;STRONG&gt;Help find this post quickly ... accept this solution now.&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/EM&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 12 Sep 2018 00:00:42 GMT</pubDate>
    <dc:creator>MFrankJohnson</dc:creator>
    <dc:date>2018-09-12T00:00:42Z</dc:date>
    <item>
      <title>Unique Thank You page based on form checkbox</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Unique-Thank-You-page-based-on-form-checkbox/m-p/206294#M8206</link>
      <description>&lt;P class="p1"&gt;I’m trying to configure a HubSpot form to redirect to a URL if the “I’m a current customer” field is checked. I also want the same form to redirect to a different URL if the field is unchecked.&lt;/P&gt;&lt;P class="p2"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;How would I make the redirectURL into a conditional statement based on whether or not a box is checked?&lt;/P&gt;&lt;P class="p2"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;Example:&lt;/P&gt;&lt;P class="p2"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;If&lt;/P&gt;&lt;P class="p1"&gt;I’m a current customer [is checked]&lt;/P&gt;&lt;P class="p1"&gt;Then&lt;/P&gt;&lt;P class="p1"&gt;Redirect to ‘google.com’&lt;/P&gt;&lt;P class="p2"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p2"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;Else If&lt;/P&gt;&lt;P class="p1"&gt;I’m a current customer [is NOT checked]&lt;/P&gt;&lt;P class="p2"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;Redirect to ‘thank-you-page’&lt;/P&gt;&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;This is what I tried but unfortunately did not yield results.&lt;/P&gt;&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&amp;lt;!--[if lte IE 8]&amp;gt;
&amp;lt;script charset="utf-8" type="text/javascript" src="//js.hsforms.net/forms/v2-legacy.js"&amp;gt;&amp;lt;/script&amp;gt;
&amp;lt;![endif]--&amp;gt;
&amp;lt;script charset="utf-8" type="text/javascript" src="//js.hsforms.net/forms/v2.js"&amp;gt;&amp;lt;/script&amp;gt;
&amp;lt;script&amp;gt;
hbspt.forms.create({
	portalId: "#######",
	formId: "########",
	onFormSubmit: function($form) {
			var choice = $('input[value="current_giving_customer"]').prop('checked', true).change();
			if (choice == 'true') {
				window.location = "https://google.com/";
			} else if (choice == 'false'){
				window.location = "https://npr.org";
			} 
		} 
});
&amp;lt;/script&amp;gt;&lt;/PRE&gt;&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;Thanks for your help!&lt;/P&gt;</description>
      <pubDate>Tue, 11 Sep 2018 21:18:55 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Unique-Thank-You-page-based-on-form-checkbox/m-p/206294#M8206</guid>
      <dc:creator>priscillam</dc:creator>
      <dc:date>2018-09-11T21:18:55Z</dc:date>
    </item>
    <item>
      <title>Re: Unique Thank You page based on form checkbox</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Unique-Thank-You-page-based-on-form-checkbox/m-p/206327#M8212</link>
      <description>&lt;P&gt;&lt;FONT color="#999999"&gt;&lt;STRONG&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="_hubspot-button-accept-as-solution-gif-v00.gif" style="width: 300px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/10050i6024F3877E1DFF1A/image-size/large?v=v2&amp;amp;px=999" role="button" title="_hubspot-button-accept-as-solution-gif-v00.gif" alt="_hubspot-button-accept-as-solution-gif-v00.gif" /&gt;&lt;/span&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Q&lt;/STRONG&gt;: Redirect to External URL Based on Form Field value?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Short A&lt;/STRONG&gt;: Not currently native HubSpot functionality.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Longer A&lt;/STRONG&gt;:&lt;/P&gt;&lt;P&gt;This quesiton has been asked / answered a few times to varying degrees. You may find the following threads helpful.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Note: some of the threads contain solutions whose functionality may now depend on your HubSpot plan.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- see &lt;A href="https://community.hubspot.com/t5/Conversion-Tools/Redirect-to-External-URL-Based-on-Form-Field/m-p/183626#M1178" target="_blank"&gt;Redirect to External URL Based on Form Field&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;- see &lt;A href="https://community.hubspot.com/t5/Content-Design-Questions/Customize-Form-Redirect-based-on-checkbox-value/m-p/28406#M2761" target="_blank"&gt;Customize Form - Redirect based on checkbox value&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Always happy to help you build on HubSpot.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best,&lt;BR /&gt;Frank&lt;/P&gt;&lt;HR /&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hubspot-solutions-signature-mfrankjohnson-v05.png" style="width: 378px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/11555i60BB289BDA5DD964/image-size/large?v=v2&amp;amp;px=999" role="button" title="hubspot-solutions-signature-mfrankjohnson-v05.png" alt="hubspot-solutions-signature-mfrankjohnson-v05.png" /&gt;&lt;/span&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.mfrankjohnson.com/?utm_source=hs-forum" target="_blank"&gt;www.MFrankJohnson.com&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;FONT color="#FF9900"&gt;&lt;STRONG&gt;Help find this post quickly ... accept this solution now.&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Sep 2018 00:00:42 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Unique-Thank-You-page-based-on-form-checkbox/m-p/206327#M8212</guid>
      <dc:creator>MFrankJohnson</dc:creator>
      <dc:date>2018-09-12T00:00:42Z</dc:date>
    </item>
    <item>
      <title>Re: Unique Thank You page based on form checkbox</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Unique-Thank-You-page-based-on-form-checkbox/m-p/206342#M8214</link>
      <description>&lt;P&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/24971"&gt;@priscillam&lt;/a&gt;&amp;nbsp;Your conditional statements are wrong since it's comparing choice to a string.&lt;BR /&gt;&lt;BR /&gt;For a checkbox, conditional statements are like this,&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&amp;lt;!--[if lte IE 8]&amp;gt;
&amp;lt;script charset="utf-8" type="text/javascript" src="//js.hsforms.net/forms/v2-legacy.js"&amp;gt;&amp;lt;/script&amp;gt;
&amp;lt;![endif]--&amp;gt;
&amp;lt;script charset="utf-8" type="text/javascript" src="//js.hsforms.net/forms/v2.js"&amp;gt;&amp;lt;/script&amp;gt;
&amp;lt;script&amp;gt;
  hbspt.forms.create({
	portalId: "#######",
	formId: "########",
		css: "",
		onFormSubmit: function($form) {
			var choice = $('input[name="&lt;STRONG&gt;test_checkbox&lt;/STRONG&gt;"]:checked').val();
			if (choice) {
    				window.location = "https://google.com/";
    		} else {
    			window.location = "https://npr.org";
    		} 
		} 
		

});
&amp;lt;/script&amp;gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've also created a test post for the same. You can check here :- &lt;A href="https://preview.hs-sites.com/_hcms/preview/template/multi?is_buffered_template_layout=true&amp;amp;portalId=2432204&amp;amp;tc_deviceCategory=desktop&amp;amp;template_layout_id=6165858760" target="_blank"&gt;https://preview.hs-sites.com/_hcms/preview/template/multi?is_buffered_template_layout=true&amp;amp;portalId=2432204&amp;amp;tc_deviceCategory=desktop&amp;amp;template_layout_id=6165858760&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Sep 2018 05:25:38 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Unique-Thank-You-page-based-on-form-checkbox/m-p/206342#M8214</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-09-12T05:25:38Z</dc:date>
    </item>
    <item>
      <title>Re: Unique Thank You page based on form checkbox</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Unique-Thank-You-page-based-on-form-checkbox/m-p/206343#M8215</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/24971"&gt;@priscillam&lt;/a&gt;,&lt;BR /&gt;&lt;BR /&gt;Your logic is correct but if conditional statement is wrong. Choice is getting compared to string and not true/false value.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt;&amp;lt;!--[if lte IE 8]&amp;gt;
&amp;lt;script charset="utf-8" type="text/javascript" src="//js.hsforms.net/forms/v2-legacy.js"&amp;gt;&amp;lt;/script&amp;gt;
&amp;lt;![endif]--&amp;gt;
&amp;lt;script charset="utf-8" type="text/javascript" src="//js.hsforms.net/forms/v2.js"&amp;gt;&amp;lt;/script&amp;gt;
&amp;lt;script&amp;gt;
  hbspt.forms.create({
	portalId: "xxxxxxxx",
	formId: "xxxxxxxxxxxxxxxxxxxxxxxx",
		onFormSubmit: function($form) {
			var choice = $('input[name="test_checkbox"]:checked').val();
			if (choice) {
    				window.location = "https://google.com/";
    		} else {
    			window.location = "https://npr.org";
    		} 
		} 
		

});
&amp;lt;/script&amp;gt;&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;You can change the checkbox name in the above script to your checkbox name and it should work fine.&lt;BR /&gt;&lt;BR /&gt;Test post I created for the same :-&amp;nbsp;&lt;A href="https://preview.hs-sites.com/_hcms/preview/template/multi?is_buffered_template_layout=true&amp;amp;portalId=2432204&amp;amp;tc_deviceCategory=desktop&amp;amp;template_layout_id=6165858760" target="_blank"&gt;https://preview.hs-sites.com/_hcms/preview/template/multi?is_buffered_template_layout=true&amp;amp;portalId=2432204&amp;amp;tc_deviceCategory=desktop&amp;amp;template_layout_id=6165858760&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Sep 2018 05:30:28 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Unique-Thank-You-page-based-on-form-checkbox/m-p/206343#M8215</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-09-12T05:30:28Z</dc:date>
    </item>
    <item>
      <title>Re: Unique Thank You page based on form checkbox</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Unique-Thank-You-page-based-on-form-checkbox/m-p/206344#M8216</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi&amp;nbsp;&lt;/SPAN&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/24971"&gt;@priscillam&lt;/a&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Your logic is correct but if conditional statement is wrong. Choice is getting compared to string and not true/false value.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt;&amp;lt;!--[if lte IE 8]&amp;gt;
&amp;lt;script charset="utf-8" type="text/javascript" src="//js.hsforms.net/forms/v2-legacy.js"&amp;gt;&amp;lt;/script&amp;gt;
&amp;lt;![endif]--&amp;gt;
&amp;lt;script charset="utf-8" type="text/javascript" src="//js.hsforms.net/forms/v2.js"&amp;gt;&amp;lt;/script&amp;gt;
&amp;lt;script&amp;gt;
  hbspt.forms.create({
	portalId: "xxxxxxxx",
	formId: "xxxxxxxxxxxxxxxxxxxxxxxx",
		onFormSubmit: function($form) {
			var choice = $('input[name="test_checkbox"]:checked').val();
			if (choice) {
    				window.location = "https://google.com/";
    		} else {
    			window.location = "https://npr.org";
    		} 
		} 
		

});
&amp;lt;/script&amp;gt;&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;&lt;SPAN&gt;You can change the checkbox name in the above script to your checkbox name and it should work fine.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Test post I created for the same :-&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;A href="https://preview.hs-sites.com/_hcms/preview/template/multi?is_buffered_template_layout=true&amp;amp;portalId=2432204&amp;amp;tc_deviceCategory=desktop&amp;amp;template_layout_id=6165858760" target="_blank"&gt;https://preview.hs-sites.com/_hcms/preview/template/multi?is_buffered_template_layout=true&amp;amp;portalId=2432204&amp;amp;tc_deviceCategory=desktop&amp;amp;template_layout_id=6165858760&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Sep 2018 05:31:50 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Unique-Thank-You-page-based-on-form-checkbox/m-p/206344#M8216</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-09-12T05:31:50Z</dc:date>
    </item>
    <item>
      <title>Re: Unique Thank You page based on form checkbox</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Unique-Thank-You-page-based-on-form-checkbox/m-p/206349#M8217</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/24971"&gt;@priscillam&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Your logic is correct but if conditional statement is wrong. Choice is getting compared to string and not true/false value.&lt;/P&gt;&lt;P&gt;&amp;lt;!--[if lte IE 8]&amp;gt;&lt;BR /&gt;&amp;lt;script charset="utf-8" type="text/javascript" src="//js.hsforms.net/forms/v2-legacy.js"&amp;gt;&amp;lt;/script&amp;gt;&lt;BR /&gt;&amp;lt;![endif]--&amp;gt;&lt;BR /&gt;&amp;lt;script charset="utf-8" type="text/javascript" src="//js.hsforms.net/forms/v2.js"&amp;gt;&amp;lt;/script&amp;gt;&lt;BR /&gt;&amp;lt;script&amp;gt;&lt;BR /&gt;hbspt.forms.create({&lt;BR /&gt;portalId: "xxxxxxxx",&lt;BR /&gt;formId: "xxxxxxxxxxxxxxxxxxxxxxxx",&lt;BR /&gt;onFormSubmit: function($form) {&lt;BR /&gt;var choice = $('input[name="test_checkbox"]:checked').val();&lt;BR /&gt;if (choice) {&lt;BR /&gt;window.location = "&lt;A href="https://google.com/" target="_blank"&gt;https://google.com/&lt;/A&gt;";&lt;BR /&gt;} else {&lt;BR /&gt;window.location = "&lt;A href="https://npr.org" target="_blank"&gt;https://npr.org&lt;/A&gt;";&lt;BR /&gt;}&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;});&lt;BR /&gt;&amp;lt;/script&amp;gt;&lt;/P&gt;&lt;P&gt;You can change the checkbox name in the above script to your checkbox name and it should work fine.&lt;/P&gt;&lt;P&gt;Test post I created for the same :- &lt;A href="https://preview.hs-sites.com/_hcms/preview/template/multi?is_buffered_template_layout=true&amp;amp;portalId=2432204&amp;amp;tc_deviceCategory=desktop&amp;amp;template_layout_id=6165858760" target="_blank"&gt;https://preview.hs-sites.com/_hcms/preview/template/multi?is_buffered_template_layout=true&amp;amp;portalId=2432204&amp;amp;tc_deviceCategory=desktop&amp;amp;template_layout_id=6165858760&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Sep 2018 06:27:27 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Unique-Thank-You-page-based-on-form-checkbox/m-p/206349#M8217</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-09-12T06:27:27Z</dc:date>
    </item>
    <item>
      <title>Re: Unique Thank You page based on form checkbox</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Unique-Thank-You-page-based-on-form-checkbox/m-p/206365#M8220</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/24971"&gt;@priscillam&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Your logic is correct but if conditional statement is wrong. Choice is getting compared to string and not true/false value.&lt;/P&gt;&lt;P&gt;&amp;lt;!--[if lte IE 8]&amp;gt;&lt;BR /&gt;&amp;lt;script charset="utf-8" type="text/javascript" src="//js.hsforms.net/forms/v2-legacy.js"&amp;gt;&amp;lt;/script&amp;gt;&lt;BR /&gt;&amp;lt;![endif]--&amp;gt;&lt;BR /&gt;&amp;lt;script charset="utf-8" type="text/javascript" src="//js.hsforms.net/forms/v2.js"&amp;gt;&amp;lt;/script&amp;gt;&lt;BR /&gt;&amp;lt;script&amp;gt;&lt;BR /&gt;hbspt.forms.create({&lt;BR /&gt;portalId: "xxxxxxxx",&lt;BR /&gt;formId: "xxxxxxxxxxxxxxxxxxxxxxxx",&lt;BR /&gt;onFormSubmit: function($form) {&lt;BR /&gt;var choice = $('input[name="test_checkbox"]:checked').val();&lt;BR /&gt;if (choice) {&lt;BR /&gt;window.location = "&lt;A href="https://google.com/" target="_blank"&gt;https://google.com/&lt;/A&gt;";&lt;BR /&gt;} else {&lt;BR /&gt;window.location = "&lt;A href="https://npr.org" target="_blank"&gt;https://npr.org&lt;/A&gt;";&lt;BR /&gt;}&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;});&lt;BR /&gt;&amp;lt;/script&amp;gt;&lt;/P&gt;&lt;P&gt;You can change the checkbox name in the above script to your checkbox name and it should work fine.&lt;/P&gt;&lt;P&gt;Test post I created for the same :- &lt;A href="https://preview.hs-sites.com/_hcms/preview/template/multi?is_buffered_template_layout=true&amp;amp;portalId=2432204&amp;amp;tc_deviceCategory=desktop&amp;amp;template_layout_id=6165858760" target="_blank"&gt;https://preview.hs-sites.com/_hcms/preview/template/multi?is_buffered_template_layout=true&amp;amp;portalId=2432204&amp;amp;tc_deviceCategory=desktop&amp;amp;template_layout_id=6165858760&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Sep 2018 09:22:43 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Unique-Thank-You-page-based-on-form-checkbox/m-p/206365#M8220</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-09-12T09:22:43Z</dc:date>
    </item>
    <item>
      <title>Re: Unique Thank You page based on form checkbox</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Unique-Thank-You-page-based-on-form-checkbox/m-p/206388#M8229</link>
      <description>&lt;P&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/24971"&gt;@priscillam&lt;/a&gt;&amp;nbsp;- You're on the right track. Just a few tweaks to your code. See the $form being passed through the callback function?&lt;/P&gt;&lt;P&gt;1. You should use that&amp;nbsp;element to find the inputs of the form.&amp;nbsp; eg. $form.find()&lt;/P&gt;&lt;P&gt;2.&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;$('input[value="current_giving_customer"]')&lt;/PRE&gt;&lt;P&gt;This is incorrect, you want to find input by name or id&lt;/P&gt;&lt;PRE&gt;$('input[&lt;STRONG&gt;name&lt;/STRONG&gt;="current_giving_customer"]')&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;3. I don't think it's good practice to evaluate a checked against the&amp;nbsp;&lt;STRONG&gt;string&lt;/STRONG&gt; 'true'; it should be just &lt;STRONG&gt;true&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try this code instead:&lt;/P&gt;&lt;PRE&gt;&amp;lt;!--[if lte IE 8]&amp;gt;
&amp;lt;script charset="utf-8" type="text/javascript" src="//js.hsforms.net/forms/v2-legacy.js"&amp;gt;&amp;lt;/script&amp;gt;
&amp;lt;![endif]--&amp;gt;
&amp;lt;script charset="utf-8" type="text/javascript" src="//js.hsforms.net/forms/v2.js"&amp;gt;&amp;lt;/script&amp;gt;
&amp;lt;script&amp;gt;
hbspt.forms.create({
	portalId: "#######",
	formId: "########",
	onFormSubmit: function($form) {
            if($form.find('input[name="current_giving_customer"]').prop('checked')){
                window.location.href = "https://google.com/";
            }else{
                window.location.href = "https://npr.org";
            }&lt;BR /&gt;        }
});
&amp;lt;/script&amp;gt;&lt;/PRE&gt;&lt;HR /&gt;&lt;P&gt;If this answer helped, please, mark as solved &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt;&lt;/P&gt;&lt;HR /&gt;&lt;P&gt;tim@belch.io | &lt;A href="https://forms.belch.io" target="_blank"&gt;forms.belch.io&lt;/A&gt; | Design your own Beautiful HubSpot Forms; No coding necessary.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Drop by and say Hi to me &lt;A href="http://slack.belch.io/" target="_blank"&gt;on slack&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Thu, 13 Sep 2018 11:19:48 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Unique-Thank-You-page-based-on-form-checkbox/m-p/206388#M8229</guid>
      <dc:creator>tjoyce</dc:creator>
      <dc:date>2018-09-13T11:19:48Z</dc:date>
    </item>
    <item>
      <title>Re: Unique Thank You page based on form checkbox</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Unique-Thank-You-page-based-on-form-checkbox/m-p/206586#M8241</link>
      <description>&lt;P&gt;God Bless you!&amp;nbsp;&lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://community.hubspot.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt; This works brilliantly and I appreciate your quick help.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;All that was missing was an extra curly bracket to close the "onFormSubmit" section. Posting the working solution for anyone else out there. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&amp;lt;!--[if lte IE 8]&amp;gt;
&amp;lt;script charset="utf-8" type="text/javascript" src="//js.hsforms.net/forms/v2-legacy.js"&amp;gt;&amp;lt;/script&amp;gt;
&amp;lt;![endif]--&amp;gt;
&amp;lt;script charset="utf-8" type="text/javascript" src="//js.hsforms.net/forms/v2.js"&amp;gt;&amp;lt;/script&amp;gt;
&amp;lt;script&amp;gt;
hbspt.forms.create({
	portalId: "#######",
	formId: "##############",
	onFormSubmit: function($form) {
            if($form.find('input[name="current_giving_customer"]').prop('checked')){
                window.location = "https://google.com/";
            }else{
                window.location = "https://npr.org";
            }
        }
});
&amp;lt;/script&amp;gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 12 Sep 2018 23:17:33 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Unique-Thank-You-page-based-on-form-checkbox/m-p/206586#M8241</guid>
      <dc:creator>priscillam</dc:creator>
      <dc:date>2018-09-12T23:17:33Z</dc:date>
    </item>
    <item>
      <title>Re: Unique Thank You page based on form checkbox</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Unique-Thank-You-page-based-on-form-checkbox/m-p/215333#M9487</link>
      <description>&lt;P&gt;Hello again! I was wondering if this code&amp;nbsp;snippet still works for you? I created a second landing page and used this code template to make a new redirect on submit when a box is checked. However, it is not redirecting. So I tried this out on the original LP and noticed that it no longer redirects&amp;nbsp;when the check box is checked. Is anyone available to try this code out and/or help me debug? Thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 06 Nov 2018 18:55:35 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Unique-Thank-You-page-based-on-form-checkbox/m-p/215333#M9487</guid>
      <dc:creator>priscillam</dc:creator>
      <dc:date>2018-11-06T18:55:35Z</dc:date>
    </item>
    <item>
      <title>Re: Unique Thank You page based on form checkbox</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Unique-Thank-You-page-based-on-form-checkbox/m-p/426115#M22296</link>
      <description>&lt;P&gt;What if I have a dropdown and based on what item is selected decides which link.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Will it be same for &lt;STRONG&gt;.prop('checked')&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Apr 2021 20:43:01 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Unique-Thank-You-page-based-on-form-checkbox/m-p/426115#M22296</guid>
      <dc:creator>MAJafri</dc:creator>
      <dc:date>2021-04-08T20:43:01Z</dc:date>
    </item>
  </channel>
</rss>

