<?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: ejubbicic</title>
		<link><a href='https://legacy.forums.gravityhelp.com/profile/ejubbicic'>ejubbicic</a></link>
		<description>Gravity Support Forums User Favorites: ejubbicic</description>
		<language>en-US</language>
		<pubDate>Sun, 19 Apr 2026 19:57:02 +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>jpollock on "Option groups on dropdown menu"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/option-groups-on-dropdown-menu#post-78939</link>
			<pubDate>Thu, 04 Oct 2012 13:13:25 +0000</pubDate>
			<dc:creator>jpollock</dc:creator>
			<guid isPermaLink="false">78939@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I've been trying to use richardvav's method with no luck. I've got my form id and field id (1 &#38;amp; 7), but the dropdown only shows &#34;First Choice&#34;. Has any one had any luck with getting option groups using this (or any other) method?&#60;/p&#62;
&#60;p&#62;&#60;strong&#62;UPDATE:&#60;/strong&#62;&#60;br /&#62;
The form &#38;amp; field id that is richardvav refers to is not the CSS id, but rather an id assigned by GForms that you can find in in the admin area (on your form, up towards the top of each field is the field id, and you can find the form id on the form settings page. It seems like a silly thing, but I had just assumed CSS id :).&#60;/p&#62;
&#60;p&#62;Works great now that I've made that change. Thanks richardvav for sharing!
&#60;/p&#62;</description>
		</item>
		<item>
			<title>michausi on "Option groups on dropdown menu"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/option-groups-on-dropdown-menu#post-61649</link>
			<pubDate>Wed, 06 Jun 2012 13:46:55 +0000</pubDate>
			<dc:creator>michausi</dc:creator>
			<guid isPermaLink="false">61649@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;+1 for optgroup!
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Richard Vav on "Option groups on dropdown menu"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/option-groups-on-dropdown-menu#post-49157</link>
			<pubDate>Sat, 11 Feb 2012 15:38:11 +0000</pubDate>
			<dc:creator>Richard Vav</dc:creator>
			<guid isPermaLink="false">49157@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;It would be great to have this built-in, in the meantime you can accomplish it using a filter.&#60;/p&#62;
&#60;p&#62;Add a drop down to your form but delete all but one of the options then save your form taking note of the form and field id's.  &#60;/p&#62;
&#60;p&#62;Next open up your themes functions file and paste in the following not forgetting to update the form and field ids to match the ones from your form and drop down.  You will also want to edit the option values and labels (on line 5) and add in as many options and optgroups as you require.&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;add_filter(&#38;#39;gform_field_content&#38;#39;, &#38;#39;modify_field&#38;#39;, 10, 5);
function modify_field($modify_html, $field){
    if($field[&#38;#39;formId&#38;#39;] == 11){
    if($field[&#38;#39;id&#38;#39;] == 5){$modify_html = str_replace(&#38;quot;&#38;lt;option value=&#38;#39;First Choice&#38;#39; &#38;gt;First Choice&#38;lt;/option&#38;gt;&#38;quot;,
&#38;quot;&#38;lt;option value=&#38;#39;&#38;#39; &#38;gt;&#38;lt;/option&#38;gt;&#38;lt;optgroup label=&#38;#39;Swedish Cars&#38;#39;&#38;gt;&#38;lt;option value=&#38;#39;volvo&#38;#39;&#38;gt;Volvo&#38;lt;/option&#38;gt;&#38;lt;option value=&#38;#39;saab&#38;#39;&#38;gt;Saab&#38;lt;/option&#38;gt;&#38;lt;/optgroup&#38;gt;&#38;lt;optgroup label=&#38;#39;German Cars&#38;#39;&#38;gt;&#38;lt;option value=&#38;#39;vw&#38;#39;&#38;gt;VW&#38;lt;/option&#38;gt;&#38;lt;option value=&#38;#39;audi&#38;#39;&#38;gt;Audi&#38;lt;/option&#38;gt;&#38;lt;/optgroup&#38;gt;&#38;quot;,$modify_html);}
	}
    return $modify_html;
}&#60;/code&#62;&#60;/pre&#62;</description>
		</item>
		<item>
			<title>hello on "Option groups on dropdown menu"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/option-groups-on-dropdown-menu#post-48077</link>
			<pubDate>Wed, 01 Feb 2012 19:39:23 +0000</pubDate>
			<dc:creator>hello</dc:creator>
			<guid isPermaLink="false">48077@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Need optgroup ASAP!&#60;/p&#62;
&#60;p&#62;Select State or Province&#60;br /&#62;
United States&#60;br /&#62;
-&#60;br /&#62;
-&#60;br /&#62;
-&#60;br /&#62;
Canada&#60;br /&#62;
-&#60;br /&#62;
-&#60;br /&#62;
-
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Carl Hancock on "Option groups on dropdown menu"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/option-groups-on-dropdown-menu#post-39429</link>
			<pubDate>Mon, 31 Oct 2011 14:48:08 +0000</pubDate>
			<dc:creator>Carl Hancock</dc:creator>
			<guid isPermaLink="false">39429@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Optgroup is a feature we still plan on adding in the future.  So it is on our to do list.  We will never be done enhancing and refining Gravity Forms.  There is no finish line.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>squidgemann on "Option groups on dropdown menu"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/option-groups-on-dropdown-menu#post-39403</link>
			<pubDate>Mon, 31 Oct 2011 11:34:07 +0000</pubDate>
			<dc:creator>squidgemann</dc:creator>
			<guid isPermaLink="false">39403@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;+1 indeed. It's only just popped up for me but, yes - would be very useful in the future. Thanks!
&#60;/p&#62;</description>
		</item>
		<item>
			<title>remotecontroldesign on "Option groups on dropdown menu"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/option-groups-on-dropdown-menu#post-35040</link>
			<pubDate>Mon, 12 Sep 2011 00:58:35 +0000</pubDate>
			<dc:creator>remotecontroldesign</dc:creator>
			<guid isPermaLink="false">35040@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;+1 !&#60;br /&#62;
Indeed. Optgroup is a must feature for managing very long lists!
&#60;/p&#62;</description>
		</item>
		<item>
			<title>jevets on "Option groups on dropdown menu"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/option-groups-on-dropdown-menu#post-23171</link>
			<pubDate>Wed, 13 Apr 2011 14:08:14 +0000</pubDate>
			<dc:creator>jevets</dc:creator>
			<guid isPermaLink="false">23171@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;+1 for optgroup :)
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Kevin Flahaut on "Option groups on dropdown menu"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/option-groups-on-dropdown-menu#post-21917</link>
			<pubDate>Tue, 29 Mar 2011 08:14:24 +0000</pubDate>
			<dc:creator>Kevin Flahaut</dc:creator>
			<guid isPermaLink="false">21917@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I'm sure that's something we will add in the future. I do know it's been discussed around here as an option.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>antonsamper on "Option groups on dropdown menu"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/option-groups-on-dropdown-menu#post-21907</link>
			<pubDate>Tue, 29 Mar 2011 00:51:09 +0000</pubDate>
			<dc:creator>antonsamper</dc:creator>
			<guid isPermaLink="false">21907@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;yeah definitely, i was just wondering if i was missing a trick as i could find it, it's not essential at the moment anyway
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
