<?xml version="1.0"?><!-- generator="bbPress" -->

<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
>

<channel>
<title>MachForm Community Forums Topic: Add optgroup to countries dropdown</title>
<link>https://www.machform.com/forums/</link>
<description>MachForm Community Forums Topic: Add optgroup to countries dropdown</description>
<language>en</language>
<pubDate>Mon, 04 May 2026 00:06:59 +0000</pubDate>

<item>
<title>yuniar on "Add optgroup to countries dropdown"</title>
<link>https://www.machform.com/forums/topic/add-optgroup-to-countries-dropdown#post-8760</link>
<pubDate>Wed, 24 Feb 2010 06:52:09 +0000</pubDate>
<dc:creator>yuniar</dc:creator>
<guid isPermaLink="false">8760@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Yes, you can replace it with standard tags, replacing the {$country_markup}&#60;br /&#62;
It won't break your machform.
&#60;/p&#62;</description>
</item>
<item>
<title>philwareham on "Add optgroup to countries dropdown"</title>
<link>https://www.machform.com/forums/topic/add-optgroup-to-countries-dropdown#post-8755</link>
<pubDate>Tue, 23 Feb 2010 16:16:24 +0000</pubDate>
<dc:creator>philwareham</dc:creator>
<guid isPermaLink="false">8755@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Thanks yuniar,&#60;br /&#62;
The query I had really was if the id numbers in the country list are crucial to the working of machform and how it would affect (if at all) how you set a selected country when making up a form, for example...&#60;/p&#62;
&#60;p&#62;$country[11]['label'] = &#34;Bahrain&#34;;&#60;br /&#62;
$country[12]['label'] = &#34;Bangladesh&#34;;&#60;br /&#62;
$country[13]['label'] = &#34;Barbados&#34;;&#60;/p&#62;
&#60;p&#62;and...&#60;/p&#62;
&#60;p&#62;$country[11]['value'] = &#34;Bahrain&#34;;&#60;br /&#62;
$country[12]['value'] = &#34;Bangladesh&#34;;&#60;br /&#62;
$country[13]['value'] = &#34;Barbados&#34;;&#60;/p&#62;
&#60;p&#62;So I can replace all this with standard option tags where {$country_markup} was without breaking machform, yes?
&#60;/p&#62;</description>
</item>
<item>
<title>yuniar on "Add optgroup to countries dropdown"</title>
<link>https://www.machform.com/forums/topic/add-optgroup-to-countries-dropdown#post-8729</link>
<pubDate>Fri, 19 Feb 2010 13:06:37 +0000</pubDate>
<dc:creator>yuniar</dc:creator>
<guid isPermaLink="false">8729@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;The code for displaying the country dropdown is located around line 1430 - 1435 in your &#34;includes/view-functions.php&#34; file.&#60;/p&#62;
&#60;p&#62;You should find this code:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;div id=&#38;quot;li_{$element-&#38;gt;id}_div_6&#38;quot; class=&#38;quot;right&#38;quot;&#38;gt;
			&#38;lt;select class=&#38;quot;element select medium&#38;quot; id=&#38;quot;element_{$element-&#38;gt;id}_6&#38;quot; name=&#38;quot;element_{$element-&#38;gt;id}_6&#38;quot;&#38;gt;
			{$country_markup}
			&#38;lt;/select&#38;gt;
		&#38;lt;label for=&#38;quot;element_{$element-&#38;gt;id}_6&#38;quot;&#38;gt;{$lang[&#38;#39;address_country&#38;#39;]}&#38;lt;/label&#38;gt;
	&#38;lt;/div&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;You can replace &#34;{$country_markup}&#34; line with the HTML tag for the dropdown which includes the optgroup tag.
&#60;/p&#62;</description>
</item>
<item>
<title>philwareham on "Add optgroup to countries dropdown"</title>
<link>https://www.machform.com/forums/topic/add-optgroup-to-countries-dropdown#post-8718</link>
<pubDate>Wed, 17 Feb 2010 23:14:09 +0000</pubDate>
<dc:creator>philwareham</dc:creator>
<guid isPermaLink="false">8718@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Hi,&#60;br /&#62;
Is it possible to manually edit the countries code within view-functions.php file so the countries can be within optgroup tags for the different continents. If so can you give me a couple of pointers on how to do it?&#60;br /&#62;
Thanks,&#60;br /&#62;
Phil
&#60;/p&#62;</description>
</item>

</channel>
</rss>
