<?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: Dropdown list + Selected value</title>
		<link>https://legacy.forums.gravityhelp.com/topic/dropdown-list-selected-value</link>
		<description>Gravity Support Forums Topic: Dropdown list + Selected value</description>
		<language>en-US</language>
		<pubDate>Mon, 20 Apr 2026 01:20:08 +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/dropdown-list-selected-value" rel="self" type="application/rss+xml" />

		<item>
			<title>VAR Channel Marketing on "Dropdown list + Selected value"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/dropdown-list-selected-value#post-50849</link>
			<pubDate>Tue, 28 Feb 2012 15:06:10 +0000</pubDate>
			<dc:creator>VAR Channel Marketing</dc:creator>
			<guid isPermaLink="false">50849@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Got this working myself, just need help with this topic&#60;br /&#62;
&#60;a href=&#34;http://www.gravityhelp.com/forums/topic/validating-form-read-only-fields-and-pre_render-hook&#34; rel=&#34;nofollow&#34;&#62;http://www.gravityhelp.com/forums/topic/validating-form-read-only-fields-and-pre_render-hook&#60;/a&#62;&#60;br /&#62;
Thanks
&#60;/p&#62;</description>
		</item>
		<item>
			<title>VAR Channel Marketing on "Dropdown list + Selected value"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/dropdown-list-selected-value#post-49392</link>
			<pubDate>Tue, 14 Feb 2012 11:18:39 +0000</pubDate>
			<dc:creator>VAR Channel Marketing</dc:creator>
			<guid isPermaLink="false">49392@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Now left with one other issue: THE BACKEND TOTAL&#60;br /&#62;
For the backend total, &#60;a href=&#34;http://www.gravityhelp.com/documentation/page/Gravity_Forms_Pricing:_Adding_Tax&#34; rel=&#34;nofollow&#34;&#62;GF Example &#60;/a&#62; used a fixed figure, 20, how can I incorporate the tax value (based on selection).&#60;/p&#62;
&#60;p&#62;add_filter('gform_product_info_78', 'update_product_info', 10, 3);&#60;br /&#62;
function update_product_info($product_info, $form, $entry) {&#60;br /&#62;
       $total = get_total($product_info);&#60;br /&#62;
      $tax = (20 * $total) / 100; // update the &#34;20&#34; to the desired tax percentage&#60;br /&#62;
.........&#60;/p&#62;
&#60;p&#62;how do I change that '20' to pick the tax value?&#60;br /&#62;
Thanks
&#60;/p&#62;</description>
		</item>
		<item>
			<title>David Smith on "Dropdown list + Selected value"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/dropdown-list-selected-value#post-49263</link>
			<pubDate>Mon, 13 Feb 2012 13:57:01 +0000</pubDate>
			<dc:creator>David Smith</dc:creator>
			<guid isPermaLink="false">49263@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Sounds like you got it. :)
&#60;/p&#62;</description>
		</item>
		<item>
			<title>VAR Channel Marketing on "Dropdown list + Selected value"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/dropdown-list-selected-value#post-49143</link>
			<pubDate>Sat, 11 Feb 2012 11:04:12 +0000</pubDate>
			<dc:creator>VAR Channel Marketing</dc:creator>
			<guid isPermaLink="false">49143@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Ok I think I got it to work.&#60;br /&#62;
Check &#60;a href=&#34;http://www.pastie.org/3361172&#34; rel=&#34;nofollow&#34;&#62;http://www.pastie.org/3361172&#60;/a&#62;&#60;br /&#62;
I changed&#60;br /&#62;
     taxRateField.change(function(){&#60;br /&#62;
    to&#60;br /&#62;
     jQuery(document).ready(function(){&#60;br /&#62;
        jQuery('select#input_3_21').bind('change', function(){&#60;br /&#62;
Removed the -   var taxRateField = jQuery('select#input_3_21'); and referred to it directly  as jQuery('select#input_3_21') in all instances&#60;br /&#62;
Then somewhere along I keep displaying the rate, to verify that it changes and let the user know.&#60;/p&#62;
&#60;p&#62;I hope it continues to work. Any redundant line or better way?&#60;/p&#62;
&#60;p&#62;Thanks y'all
&#60;/p&#62;</description>
		</item>
		<item>
			<title>VAR Channel Marketing on "Dropdown list + Selected value"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/dropdown-list-selected-value#post-49137</link>
			<pubDate>Sat, 11 Feb 2012 10:07:29 +0000</pubDate>
			<dc:creator>VAR Channel Marketing</dc:creator>
			<guid isPermaLink="false">49137@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;My select field was hidden (displays on a condition), I undid that (made it visible) and still not working....
&#60;/p&#62;</description>
		</item>
		<item>
			<title>VAR Channel Marketing on "Dropdown list + Selected value"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/dropdown-list-selected-value#post-49136</link>
			<pubDate>Sat, 11 Feb 2012 10:05:16 +0000</pubDate>
			<dc:creator>VAR Channel Marketing</dc:creator>
			<guid isPermaLink="false">49136@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;It kind of did not work.&#60;br /&#62;
Here is what I have.  &#60;a href=&#34;http://www.pastie.org/3360944&#34; rel=&#34;nofollow&#34;&#62;http://www.pastie.org/3360944&#60;/a&#62;&#60;br /&#62;
The other one worked better except the lack of communicating change in selection. Any ideas?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>David Smith on "Dropdown list + Selected value"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/dropdown-list-selected-value#post-49125</link>
			<pubDate>Sat, 11 Feb 2012 07:45:42 +0000</pubDate>
			<dc:creator>David Smith</dc:creator>
			<guid isPermaLink="false">49125@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi VAR,&#60;/p&#62;
&#60;p&#62;Here is an adjusted snippet where we let Gravity Forms know that any time the drop down changes it should recalculate the form:&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://pastie.org/3360358&#34; rel=&#34;nofollow&#34;&#62;http://pastie.org/3360358&#60;/a&#62;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>VAR Channel Marketing on "Dropdown list + Selected value"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/dropdown-list-selected-value#post-49076</link>
			<pubDate>Fri, 10 Feb 2012 20:16:53 +0000</pubDate>
			<dc:creator>VAR Channel Marketing</dc:creator>
			<guid isPermaLink="false">49076@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Works Great. But How do I 'monitor' the dropdown, should the user change it.&#60;br /&#62;
The form calculates based on the selection, but doesnt update if for instance I go back and change the value in the dropdown.&#60;br /&#62;
Regards,
&#60;/p&#62;</description>
		</item>
		<item>
			<title>David Smith on "Dropdown list + Selected value"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/dropdown-list-selected-value#post-48877</link>
			<pubDate>Thu, 09 Feb 2012 16:45:17 +0000</pubDate>
			<dc:creator>David Smith</dc:creator>
			<guid isPermaLink="false">48877@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Give this a shot: &#60;a href=&#34;http://pastie.org/3350499&#34; rel=&#34;nofollow&#34;&#62;http://pastie.org/3350499&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;Be sure to update as indicated by the comments. :)
&#60;/p&#62;</description>
		</item>
		<item>
			<title>VAR Channel Marketing on "Dropdown list + Selected value"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/dropdown-list-selected-value#post-48561</link>
			<pubDate>Tue, 07 Feb 2012 12:22:41 +0000</pubDate>
			<dc:creator>VAR Channel Marketing</dc:creator>
			<guid isPermaLink="false">48561@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I am trying to customize the walkthrough for Tax (&#60;a href=&#34;http://gravityhelp.com/documentation/page/Gravity_Forms_Pricing:_Adding_Tax)&#34; rel=&#34;nofollow&#34;&#62;http://gravityhelp.com/documentation/page/Gravity_Forms_Pricing:_Adding_Tax)&#60;/a&#62;.&#60;br /&#62;
But in my case, I want the tax rate to vary based on a preselected item from a dropdown list.&#60;br /&#62;
So for example&#60;br /&#62;
if you selected option 1 from the specified dropdown, then ur tax rate is X%, if you selected 2, your rate will be Y% etc.&#60;br /&#62;
How do I use/call up the value/item in the selected field? What filter/function/code can I use to acieve this?&#60;/p&#62;
&#60;p&#62;See part of what I have so far in my functions.php&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;add_filter(&#38;#39;gform_pre_render_3&#38;#39;, &#38;#39;add_total_script&#38;#39;);
	function add_total_script($form) {
	    ?&#38;gt;
    &#38;lt;script type=&#38;quot;text/javascript&#38;quot;&#38;gt;
   	 function gform_product_total(formId, total){
         var rate = 0;
	if ($(&#38;quot;.ginput_3_20 option:selected&#38;quot;).text()) == &#38;quot;Option1_selected&#38;quot;){
        rate = 20; } else {
        if ...................................// an so on
        } else {
        rate = 100;
        }  //end if
        var tax = ((rate * total) / 100);  //calculate the tax to be paid and add below;
        return total + tax;
    }
    &#38;lt;/script&#38;gt;

&#38;lt;?php
    return $form;
}&#60;/code&#62;&#60;/pre&#62;</description>
		</item>

	</channel>
</rss>
