<?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 User Favorites: zagriyen</title>
		<link><a href='https://legacy.forums.gravityhelp.com/profile/zagriyen'>zagriyen</a></link>
		<description>Gravity Support Forums User Favorites: zagriyen</description>
		<language>en-US</language>
		<pubDate>Mon, 20 Apr 2026 10:03:07 +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/profile/" rel="self" type="application/rss+xml" />

		<item>
			<title>Chris Hajer on "Add onclick on radio button"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/add-onclick-on-radio-button#post-189907</link>
			<pubDate>Fri, 29 Mar 2013 21:04:47 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">189907@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Also, I just posted a suggestion for a similar topic here: &#60;a href=&#34;http://www.gravityhelp.com/forums/topic/easy-access-to-section-breaks?replies=6#post-189906&#34; rel=&#34;nofollow&#34;&#62;http://www.gravityhelp.com/forums/topic/easy-access-to-section-breaks?replies=6#post-189906&#60;/a&#62;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "Add onclick on radio button"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/add-onclick-on-radio-button#post-189904</link>
			<pubDate>Fri, 29 Mar 2013 21:03:30 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">189904@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Is this working for you now?  I am unclear if you still need assistance or not.  Please let us know.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>zagriyen on "Add onclick on radio button"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/add-onclick-on-radio-button#post-186443</link>
			<pubDate>Wed, 27 Mar 2013 06:18:29 +0000</pubDate>
			<dc:creator>zagriyen</dc:creator>
			<guid isPermaLink="false">186443@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Thank you, finaly I'll use the submit button and pending the onclick on radio method
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "Add onclick on radio button"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/add-onclick-on-radio-button#post-185688</link>
			<pubDate>Tue, 26 Mar 2013 14:32:54 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">185688@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I understand what you're trying to do, but need to see it in practice to be able to help troubleshoot why it's not working.  If you have another domain which is publicly accessible, please install it there and share the link to that page.&#60;/p&#62;
&#60;p&#62;I did ask the development team about that same bit of code to see if it is still working with current versions of Gravity Forms.  &#60;a href=&#34;http://www.gravityhelp.com/forums/topic/easy-access-to-section-breaks?replies=4#post-184199&#34; rel=&#34;nofollow&#34;&#62;http://www.gravityhelp.com/forums/topic/easy-access-to-section-breaks?replies=4#post-184199&#60;/a&#62;  I have not yet heard back, but the resolution there will likely help in your case as well.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>zagriyen on "Add onclick on radio button"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/add-onclick-on-radio-button#post-185663</link>
			<pubDate>Tue, 26 Mar 2013 14:09:55 +0000</pubDate>
			<dc:creator>zagriyen</dc:creator>
			<guid isPermaLink="false">185663@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;The website is on my local dev environnement,&#60;br /&#62;
but, for reduce user action (click) I want add onclic event on each radio input for submit my form and go on the next gravity form page ( multi-page )&#60;br /&#62;
by adding this on each input radio :&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;onclick=&#38;quot;jQuery(&#38;quot;#gform_target_page_number_1&#38;quot;).val(&#38;quot;3&#38;quot;); jQuery(&#38;quot;#gform_1&#38;quot;).trigger(&#38;quot;submit&#38;quot;,[true]); &#38;quot;&#60;/code&#62;&#60;/pre&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "Add onclick on radio button"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/add-onclick-on-radio-button#post-185661</link>
			<pubDate>Tue, 26 Mar 2013 14:05:30 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">185661@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Can you share the URL to the page on your site where you tried this so we can see what's happening?  Thank you.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>zagriyen on "Add onclick on radio button"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/add-onclick-on-radio-button#post-185644</link>
			<pubDate>Tue, 26 Mar 2013 13:39:23 +0000</pubDate>
			<dc:creator>zagriyen</dc:creator>
			<guid isPermaLink="false">185644@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi,&#60;br /&#62;
How to add onclick on a radio button list,&#60;br /&#62;
I want my form submit when an user change the value on a radio in my multi-page form&#60;br /&#62;
I try this, but not work&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;jQuery(document).ready(function(){
   jQuery(&#38;#39;#choice_20_0&#38;#39;).bind(&#38;#39;onchange&#38;#39;, function (){
   	jQuery(&#38;quot;#gform_target_page_number_1&#38;quot;).val(&#38;quot;3&#38;quot;);
   	jQuery(&#38;quot;#gform_1&#38;quot;).trigger(&#38;quot;submit&#38;quot;,[true]);
   });
});&#60;/code&#62;&#60;/pre&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "gform_pre_render upon previous dropdown condition?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/gform_pre_render-upon-previous-dropdown-condition#post-140742</link>
			<pubDate>Sun, 03 Feb 2013 22:11:20 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">140742@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Very nice solution.  Thank you for posting your code.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Josh on "gform_pre_render upon previous dropdown condition?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/gform_pre_render-upon-previous-dropdown-condition#post-137821</link>
			<pubDate>Thu, 31 Jan 2013 20:31:57 +0000</pubDate>
			<dc:creator>Josh</dc:creator>
			<guid isPermaLink="false">137821@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Great, I did just that, see code below I used. Thanks&#60;/p&#62;
&#60;p&#62;Upon change of Dropdown A I have an ajax function request tha re-populated Downdown B with the filtered options based on the selection in Dropdown A.&#60;/p&#62;
&#60;p&#62;See the ajax jquery script... &#60;/p&#62;
&#60;pre&#62;&#60;code&#62;[php]
countryFilter = function () {
    	var countryClass = &#38;#39;.dealer-country select&#38;#39;,
    		dealerClass  = &#38;#39;.dealer-name select&#38;#39;;
    	$(countryClass).change(function(){
    		var countrySelect = $(this),
    			country = countrySelect.val(),
    	    	dealerSelect = countrySelect.parents(&#38;#39;form&#38;#39;).find(dealerClass);
    	 	if(country != &#38;quot;default&#38;quot;) {
    	    	$.ajax({
    				type: &#38;#39;POST&#38;#39;,
    				url: &#38;#39;&#38;lt;?php echo admin_url(&#38;#39;admin-ajax.php&#38;#39;); ?&#38;gt;&#38;#39;,
    				data: { dealerCountry : country, action: &#38;#39;get_dealer_name&#38;#39; },
    				success: function(data){
    					dealerSelect.empty();
    					var options = $.parseJSON(data);
    					for(i=0;i&#38;lt;options.length;i++){
    						dealerSelect.append(&#38;#39;&#38;lt;option value=&#38;quot;&#38;#39;+options[i].value+&#38;#39;&#38;quot;&#38;gt;&#38;#39;+options[i].text+&#38;#39;&#38;lt;/option&#38;gt;&#38;#39;);
    					}
    					dealerSelect.removeAttr(&#38;#39;disabled&#38;#39;);
    				}
    	    	});
    	    }
    	});
    }&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Which I fired using...&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;[js]
$(document).ready(function () {
    	countryFilter();
    });
    $(document).bind(&#38;#39;gform_post_render&#38;#39;, function(event, form_id){
    	if(form_id == 3) {
        	countryFilter();
    	}
    });&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;I then trimmed my original functions to...&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;[php]
// Dropdown A - Dealer Country
    add_filter(&#38;quot;gform_pre_render&#38;quot;, &#38;quot;dropdown_dealer_country&#38;quot;);
    add_filter(&#38;quot;gform_admin_pre_render&#38;quot;, &#38;quot;dropdown_dealer_country&#38;quot;);
    function dropdown_dealer_country($form){
            if($form[&#38;quot;id&#38;quot;] != 3)
               return $form;
            $terms = get_terms(&#38;quot;dealer-country&#38;quot;);
            $items = array();
            $items[] = array( &#38;quot;text&#38;quot; =&#38;gt; __(&#38;#39;Select country...&#38;#39;,&#38;#39;theme&#38;#39;), &#38;quot;value&#38;quot; =&#38;gt; &#38;#39;default&#38;#39; );
            foreach($terms as $term)
        		$items[] = array( &#38;quot;text&#38;quot; =&#38;gt; $term-&#38;gt;name, &#38;quot;value&#38;quot; =&#38;gt; $term-&#38;gt;slug );
            foreach($form[&#38;quot;fields&#38;quot;] as &#38;amp;$field){
                if($field[&#38;quot;id&#38;quot;] == 6 ){
                    $field[&#38;quot;cssClass&#38;quot;] = &#38;#39;dealer-country&#38;#39;;
                    $field[&#38;quot;choices&#38;quot;] = $items;
                }
        	}
            return $form;
        }
        // Dropdown B - Dealer Name
    add_filter(&#38;quot;gform_pre_render&#38;quot;, &#38;quot;dropdown_dealer_name&#38;quot;);
    add_filter(&#38;quot;gform_admin_pre_render&#38;quot;, &#38;quot;dropdown_dealer_name&#38;quot;);
    function dropdown_dealer_name($form){
            if($form[&#38;quot;id&#38;quot;] != 3)
               return $form;
            $items = array();
            $items[] = array( &#38;quot;text&#38;quot; =&#38;gt; __(&#38;#39;Select dealer...&#38;#39;,&#38;#39;theme&#38;#39;), &#38;quot;value&#38;quot; =&#38;gt; &#38;#39;default&#38;#39; );
            foreach($form[&#38;quot;fields&#38;quot;] as &#38;amp;$field){
                if($field[&#38;quot;id&#38;quot;] == 7){
        			$field[&#38;quot;cssClass&#38;quot;] = &#38;#39;dealer-name&#38;#39;;
        			$field[&#38;quot;choices&#38;quot;] = $items;
                }
        	}
            return $form;
        }&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Then the finishing touch is the function which also goes in the functions.php - this is called by the ajax request...&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;[php]
function get_dealer_name_fn(){
    	$dealerCountry = $_POST[&#38;#39;dealerCountry&#38;#39;];
    	$dealers = get_posts(array(
            &#38;quot;post_type&#38;quot; =&#38;gt; &#38;quot;dealer&#38;quot;,
            &#38;quot;dealer-country&#38;quot; =&#38;gt; $dealerCountry,
            &#38;quot;post_status&#38;quot; =&#38;gt; &#38;quot;publish&#38;quot;,
            &#38;quot;orderby&#38;quot; =&#38;gt; &#38;quot;title&#38;quot;,
            &#38;quot;order&#38;quot; =&#38;gt; &#38;quot;ASC&#38;quot;,
            &#38;quot;posts_per_page&#38;quot;  =&#38;gt; -1
    	));
    	$items = array();
    	$items[] = array( &#38;quot;text&#38;quot; =&#38;gt; __(&#38;#39;Select dealer...&#38;#39;,&#38;#39;theme&#38;#39;), &#38;quot;value&#38;quot; =&#38;gt; &#38;#39;default&#38;#39; );
    	foreach($dealers as $dealer){
    		$items[] = array( &#38;quot;text&#38;quot; =&#38;gt; $dealer-&#38;gt;post_title, &#38;quot;value&#38;quot; =&#38;gt; $dealer-&#38;gt;post_title );
    	}
    	echo json_encode($items);
    	die;
    }
    add_action(&#38;#39;wp_ajax_get_dealer_name&#38;#39;, &#38;#39;get_dealer_name_fn&#38;#39;);
    add_action(&#38;#39;wp_ajax_nopriv_get_dealer_name&#38;#39;, &#38;#39;get_dealer_name_fn&#38;#39;);&#60;/code&#62;&#60;/pre&#62;</description>
		</item>
		<item>
			<title>David Peralty on "gform_pre_render upon previous dropdown condition?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/gform_pre_render-upon-previous-dropdown-condition#post-134261</link>
			<pubDate>Mon, 28 Jan 2013 17:48:13 +0000</pubDate>
			<dc:creator>David Peralty</dc:creator>
			<guid isPermaLink="false">134261@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;You would have to use JavaScript (AJAX) to do this, by capturing the choice and doing stuff to it and changing your second drop down.
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
