<?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: Pass &#039;disabled&#039; to gform_pre_render_2 for dynamically populated dropdown</title>
		<link>https://legacy.forums.gravityhelp.com/topic/pass-disabled-to-gform_pre_render_2-for-dynamically-populated-dropdown</link>
		<description>Gravity Support Forums Topic: Pass &#039;disabled&#039; to gform_pre_render_2 for dynamically populated dropdown</description>
		<language>en-US</language>
		<pubDate>Fri, 10 Apr 2026 01:54:44 +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/pass-disabled-to-gform_pre_render_2-for-dynamically-populated-dropdown" rel="self" type="application/rss+xml" />

		<item>
			<title>David Smith on "Pass &#039;disabled&#039; to gform_pre_render_2 for dynamically populated dropdown"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/pass-disabled-to-gform_pre_render_2-for-dynamically-populated-dropdown#post-37598</link>
			<pubDate>Tue, 11 Oct 2011 16:56:44 +0000</pubDate>
			<dc:creator>David Smith</dc:creator>
			<guid isPermaLink="false">37598@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi Abacus,&#60;/p&#62;
&#60;p&#62;Ah, I see. That makes this a little trickier. What you could do is the same check, but instead of skipping the parent category, you would set the value to a special key, like &#34;CAT_PARENT&#34;. Then you could use a little jQuery like this to disable those elements:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;[js]
&#38;lt;script type=&#38;quot;text/javascript&#38;quot;&#38;gt;
    jQuery(document).ready(function($){

        $(&#38;#39;.populate-cats option[value=&#38;quot;CAT_PARENT&#38;quot;]&#38;#39;).attr(&#38;#39;disabled&#38;#39;, true);

    });
    &#38;lt;/script&#38;gt;&#60;/code&#62;&#60;/pre&#62;</description>
		</item>
		<item>
			<title>abacus718 on "Pass &#039;disabled&#039; to gform_pre_render_2 for dynamically populated dropdown"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/pass-disabled-to-gform_pre_render_2-for-dynamically-populated-dropdown#post-37592</link>
			<pubDate>Tue, 11 Oct 2011 16:01:48 +0000</pubDate>
			<dc:creator>abacus718</dc:creator>
			<guid isPermaLink="false">37592@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi.. I want to SHOW the parent category, just not allow it to be selected. This would just not show the parent category at all, right?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>David Smith on "Pass &#039;disabled&#039; to gform_pre_render_2 for dynamically populated dropdown"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/pass-disabled-to-gform_pre_render_2-for-dynamically-populated-dropdown#post-37590</link>
			<pubDate>Tue, 11 Oct 2011 15:56:04 +0000</pubDate>
			<dc:creator>David Smith</dc:creator>
			<guid isPermaLink="false">37590@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi Abacus,&#60;/p&#62;
&#60;p&#62;You could check if the current category in the loop as any children and if so, skip it and move on the next category.&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;[php]
$children = get_categories(array(&#38;#39;child_of&#38;#39; =&#38;gt; $category-&#38;gt;term_id));
if(!empty(children))
    continue;&#60;/code&#62;&#60;/pre&#62;</description>
		</item>
		<item>
			<title>abacus718 on "Pass &#039;disabled&#039; to gform_pre_render_2 for dynamically populated dropdown"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/pass-disabled-to-gform_pre_render_2-for-dynamically-populated-dropdown#post-37564</link>
			<pubDate>Tue, 11 Oct 2011 12:32:19 +0000</pubDate>
			<dc:creator>abacus718</dc:creator>
			<guid isPermaLink="false">37564@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Based on the post about populating a dropdown dynamically, I have a drop down that pulls from my CATEGORIES, from which I want the user to be able to select ONLY a category that has parent (e.g. If i have men, women and children as parent categories, and each of them contains &#34;clothes&#34; and &#34;shoes&#34; I want the user to only be able to select either Men &#38;gt; Clothes or Men &#38;gt; Shoes, but not just MEN.  I'm passing the correct values to form and it's picking them up, but I can't figure out how to indicate which values (the parent categories) should be disabled/unavailable for the user to select. Thanks. /sarah
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
