<?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: depending fields dropdowns and checkboxes</title>
		<link>https://legacy.forums.gravityhelp.com/topic/depending-fields-dropdowns-and-checkboxes</link>
		<description>Gravity Support Forums Topic: depending fields dropdowns and checkboxes</description>
		<language>en-US</language>
		<pubDate>Tue, 07 Apr 2026 16:34:51 +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/depending-fields-dropdowns-and-checkboxes" rel="self" type="application/rss+xml" />

		<item>
			<title>Chris Hajer on "depending fields dropdowns and checkboxes"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/depending-fields-dropdowns-and-checkboxes#post-115678</link>
			<pubDate>Mon, 07 Jan 2013 00:56:52 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">115678@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;There is no planned release date for that fix.  If you would like assistance with your specific circumstances, please open a new topic and post the details there, including a link to the page on your site where the form is embedded. Thank you.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>nitestop on "depending fields dropdowns and checkboxes"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/depending-fields-dropdowns-and-checkboxes#post-115191</link>
			<pubDate>Sun, 06 Jan 2013 10:25:22 +0000</pubDate>
			<dc:creator>nitestop</dc:creator>
			<guid isPermaLink="false">115191@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;ok is there a fix coming were we will be able to use multiple checkboxes and select fields...&#60;br /&#62;
because they are not working on my site
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Alex Cancado on "depending fields dropdowns and checkboxes"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/depending-fields-dropdowns-and-checkboxes#post-108343</link>
			<pubDate>Wed, 26 Dec 2012 11:52:15 +0000</pubDate>
			<dc:creator>Alex Cancado</dc:creator>
			<guid isPermaLink="false">108343@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Your solution is interesting, but this is an area that we will be touching soon (to fix this IS_ADMIN problem once and for all), so I am a little hesitant to make this change as it could create more problems down the road. However, what I can do for you is add a filter to the IS_ADMIN so that you can implement it however you like. If that seems interesting, email me to &#60;a href=&#34;mailto:alex@rocketgenius.com&#34;&#62;alex@rocketgenius.com&#60;/a&#62; and we will get the ball rolling.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "depending fields dropdowns and checkboxes"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/depending-fields-dropdowns-and-checkboxes#post-105957</link>
			<pubDate>Sat, 22 Dec 2012 09:33:24 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">105957@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Let me bring this to the attention of the development team and see what they say.  Thank you for your hard work.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>hittheroadjack on "depending fields dropdowns and checkboxes"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/depending-fields-dropdowns-and-checkboxes#post-105894</link>
			<pubDate>Sat, 22 Dec 2012 06:49:23 +0000</pubDate>
			<dc:creator>hittheroadjack</dc:creator>
			<guid isPermaLink="false">105894@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I have solved it now with jQuery and AJAX.  My plugin is close to the last step before release now, just one little issue to overcome:&#60;br /&#62;
in order to feed back the 'filtered' information via AJAX straigt to the DOM elements, I intended to use 'inside' functions of gravity forms like GFFormdisplay::get_field() or  GFFormdisplay::get_field_content(). Thus I would be able to use a GF standard field object for filtering and feed back proper HTML code.&#60;br /&#62;
Unfortunately, this has one hook: those functions use the constant IS_ADMIN for modifying some elements ids and classes of i.e. input fields. In case IS_ADMIN is TRUE you get &#34;#input_3&#34;, if IS_ADMIN is FALSE you get &#34;#input_20_3&#34; - the first one without form-id the second one including it. The proper one in my case would be the latter one. But I can't get it returned by the function using an ajax request via admin-ajax.php because is_admin() is always set TRUE during handling of ajax requests by admin-ajax.php. For testing purposes, I have modified the definition of IS_ADMIN in gravityforms.php like this:&#60;/p&#62;
&#60;blockquote&#62;&#60;p&#62;&#60;code&#62;define(&#38;quot;IS_ADMIN&#38;quot;,  (is_admin() &#38;amp;&#38;amp; !DOING_AJAX));&#60;/code&#62;&#60;/p&#62;&#60;/blockquote&#62;
&#60;p&#62;This would solve the problem!&#60;br /&#62;
Do I have a chance to get this modified in a next release of GF?&#60;br /&#62;
Or is there any other workaround to get IS_ADMIN modified just for one function call to GFFormdisplay::get_field_content() or GFFormdisplay::get_field() during an ajax request?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>hittheroadjack on "depending fields dropdowns and checkboxes"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/depending-fields-dropdowns-and-checkboxes#post-102095</link>
			<pubDate>Thu, 13 Dec 2012 08:01:03 +0000</pubDate>
			<dc:creator>hittheroadjack</dc:creator>
			<guid isPermaLink="false">102095@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Actually, I just started with writing an add-on plugin for GF using the approach from this thread.&#60;br /&#62;
So far, I have a nice admin page to let admins define 'controller fields' and 'filter fields' where thfe 'filter fields' depend on events fired by action on 'controller fields'. In order to get this dependencies established, I need to bind them by jQuery either with the .live  or the .on method. To avoid overloading, I thought I bind only those dependencies which are actually needed because their form is loaded on the DOM. I guess, I could retrieve this information somehow with jQuery, but is there also a hook/filter or GF Class method on the PHP side to find out which forms are actually present and equally important, which forms were unloaded-  e.g. by closing page  ??
&#60;/p&#62;</description>
		</item>
		<item>
			<title>hittheroadjack on "depending fields dropdowns and checkboxes"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/depending-fields-dropdowns-and-checkboxes#post-96004</link>
			<pubDate>Tue, 27 Nov 2012 03:07:20 +0000</pubDate>
			<dc:creator>hittheroadjack</dc:creator>
			<guid isPermaLink="false">96004@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Thanks Chris,&#60;br /&#62;
everything is in perfect working order now.&#60;br /&#62;
I have a couple of forms here where this method might be very helpful. If I only were better in programming, I would consider making an add-on plugin of it. If I can trust my search engines, this is a quite common problem for form designers and 'conditional logic' helps a lot but does not solve dynamic run time probs.&#60;br /&#62;
Thanks again for helping!
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "depending fields dropdowns and checkboxes"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/depending-fields-dropdowns-and-checkboxes#post-95992</link>
			<pubDate>Tue, 27 Nov 2012 02:50:26 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">95992@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I was having a hard time following your train of thought.  Do you have everything working as expected now?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>hittheroadjack on "depending fields dropdowns and checkboxes"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/depending-fields-dropdowns-and-checkboxes#post-95685</link>
			<pubDate>Mon, 26 Nov 2012 09:45:22 +0000</pubDate>
			<dc:creator>hittheroadjack</dc:creator>
			<guid isPermaLink="false">95685@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;EDIT: Sorry for posting early! I was wrong!&#60;br /&#62;
If I address the elements correctly, I get the right values! I should have taken jQuery('#choice_16_2').val  instead of jQuery('.gchoice_16_2').val. With #choice_16_2 everything is as expected and fine! Forget about the rest of the post!!&#60;/p&#62;
&#60;blockquote&#62;&#60;p&#62;
Sorry but no! My current experience is different. Looking at the $entry object using a 'gform_after_submission' hook, I am getting 'wrong' values, i.e. the labels of checkboxes and their attached values are not submitting in the $entry object, although they have been changed by jQuery and displayed correctly in the form. Using Firebug, one can see the values and labels change in the HTML. On submission, I get the original label and value content as entered in the form editor ( equals the content of the $form object) . This is what I am doing:&#60;br /&#62;
in the jQuery part:&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;jQuery(&#38;quot;#input_26_2&#38;quot;).change(function() { //start function when dropdown changes
	var sel=jQuery(&#38;quot;#input_26_2 :selected&#38;quot;).val();
		jQuery.ajax({
			type: &#38;quot;post&#38;quot;,url: &#38;quot;/wp-admin/admin-ajax.php&#38;quot;,dataType: &#38;quot;JSON&#38;quot;, data: { action: &#38;#39;randomcol2&#38;#39;, _ajax_nonce: &#38;#39;&#38;lt;?php echo $nonce; ?&#38;gt;&#38;#39;, avalue: sel},
			beforeSend: function() {jQuery(&#38;quot;#loading2&#38;quot;).fadeIn(&#38;#39;fast&#38;#39;);}, //fadeIn loading just when changed
			success: function(html){ //so, if data is retrieved, store it in html
				jQuery(&#38;quot;#loading2&#38;quot;).fadeOut(&#38;#39;fast&#38;#39;);
				jQuery(&#38;quot;#colour4&#38;quot;).val(html[0][&#38;#39;value&#38;#39;]); //fadeIn the html inside helloworld div
				jQuery(&#38;quot;#input_26_15&#38;quot;).val(html);
//				var result = html.split(&#38;#39;~&#38;#39;);
				var result = html;
				jQuery(&#38;#39;label[for=&#38;quot;choice_16_1&#38;quot;]&#38;#39;).html(result[0][&#38;#39;text&#38;#39;]);
				jQuery(&#38;#39;.gchoice_16_1&#38;#39;).val(result[0][&#38;#39;value&#38;#39;]);
				jQuery(&#38;#39;label[for=&#38;quot;choice_16_2&#38;quot;]&#38;#39;).html(result[1][&#38;#39;text&#38;#39;]);
				jQuery(&#38;#39;.gchoice_16_2&#38;#39;).val(result[1][&#38;#39;value&#38;#39;]);
				jQuery(&#38;#39;label[for=&#38;quot;choice_16_3&#38;quot;]&#38;#39;).html(result[2][&#38;#39;text&#38;#39;]);
				jQuery(&#38;#39;.gchoice_16_3&#38;#39;).val(result[2][&#38;#39;value&#38;#39;]);
				jQuery(&#38;quot;#helloworld&#38;quot;).fadeIn(&#38;quot;fast&#38;quot;); //animation
			},
		}); //close jQuery.ajax&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;and in the php part:&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;function randomcol2() {
	check_ajax_referer( &#38;quot;helloworld&#38;quot; );
	$mapid = get_map_name($_REQUEST[&#38;#39;avalue&#38;#39;]);
	$mapimg = get_images($mapid);
    foreach($mapimg as $image) {
            $image_deets = wp_get_attachment_image_src($image-&#38;gt;ID);
            $choices[] = array(&#38;#39;text&#38;#39; =&#38;gt; &#38;quot;&#38;lt;div style=\&#38;quot;width:250 px; font-size:80%; text-align:center;\&#38;quot;&#38;gt;&#38;lt;img src=\&#38;quot;{$image_deets[0]}\&#38;quot; alt=\&#38;quot;\&#38;quot; width=\&#38;quot;250\&#38;quot; height=\&#38;quot;163\&#38;quot; style=\&#38;quot;padding-bottom:0.5em;\&#38;quot;/&#38;gt;&#38;lt;br/&#38;gt;&#38;quot;.$image-&#38;gt;post_title.&#38;quot;&#38;lt;/div&#38;gt;&#38;quot;, &#38;#39;value&#38;#39; =&#38;gt; $image-&#38;gt;ID);
        }
	echo json_encode($choices);
//    echo implode(&#38;#39;~&#38;#39;,$choices);
	die();
}
add_action( &#38;#39;wp_ajax_&#38;#39; . $_REQUEST[&#38;#39;action&#38;#39;], $_REQUEST[&#38;#39;action&#38;#39;], 1 );
add_action( &#38;#39;wp_ajax_nopriv_&#38;#39; . $_REQUEST[&#38;#39;action&#38;#39;], $_REQUEST[&#38;#39;action&#38;#39;], 1 );&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;And how about your German? Here is your link: &#60;a href=&#34;http://5.9.51.145/2012/noch-ein-test/&#34; rel=&#34;nofollow&#34;&#62;http://5.9.51.145/2012/noch-ein-test/&#60;/a&#62;&#60;br /&#62;
When you click on the link with the tools icon you will get the form in a popup. Just change the dropdown selection to see the effect.&#60;br /&#62;
Maybe, I should give a try to what Eugene Oprea said in this post: &#60;a href=&#34;http://www.gravityhelp.com/forums/topic/pre-rendered-checkboxes-wont-submit#post-74971&#34; rel=&#34;nofollow&#34;&#62;http://www.gravityhelp.com/forums/topic/pre-rendered-checkboxes-wont-submit#post-74971&#60;/a&#62;
&#60;/p&#62;&#60;/blockquote&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "depending fields dropdowns and checkboxes"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/depending-fields-dropdowns-and-checkboxes#post-95523</link>
			<pubDate>Mon, 26 Nov 2012 02:50:14 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">95523@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;No matter how you make a selection or data entry in the form (be that jQuery to add the value or check the option, or a user actually making the entry) that is the value that will be submitted with the form.  Has that been your experience?  Can you share a link to your form so we can check it out?
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
