<?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: Address Label Changes</title>
<link>https://www.machform.com/forums/</link>
<description>MachForm Community Forums Topic: Address Label Changes</description>
<language>en</language>
<pubDate>Wed, 06 May 2026 09:10:05 +0000</pubDate>

<item>
<title>redityo on "Address Label Changes"</title>
<link>https://www.machform.com/forums/topic/address-label-changes#post-5040</link>
<pubDate>Sat, 14 Mar 2009 20:36:58 +0000</pubDate>
<dc:creator>redityo</dc:creator>
<guid isPermaLink="false">5040@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Hi Ron,&#60;/p&#62;
&#60;p&#62;It will take a lot of code customization :), you should edit &#34;view-function.php&#34; to do this. Try go to around line 1401 ~ 1437, you will see this code :&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;$element_markup = &#38;lt;&#38;lt;&#38;lt;EOT
		&#38;lt;li id=&#38;quot;li_{$element-&#38;gt;id}&#38;quot; {$error_class}&#38;gt;
		&#38;lt;label class=&#38;quot;description&#38;quot;&#38;gt;{$element-&#38;gt;title} {$span_required}&#38;lt;/label&#38;gt;

		&#38;lt;div id=&#38;quot;li_{$element-&#38;gt;id}_div_1&#38;quot;&#38;gt;
			&#38;lt;input id=&#38;quot;element_{$element-&#38;gt;id}_1&#38;quot; name=&#38;quot;element_{$element-&#38;gt;id}_1&#38;quot; class=&#38;quot;element text large&#38;quot; value=&#38;quot;{$element-&#38;gt;populated_value[&#38;#39;element_&#38;#39;.$element-&#38;gt;id.&#38;#39;_1&#38;#39;][&#38;#39;default_value&#38;#39;]}&#38;quot; type=&#38;quot;text&#38;quot; /&#38;gt;
			&#38;lt;label for=&#38;quot;element_{$element-&#38;gt;id}_1&#38;quot;&#38;gt;{$lang[&#38;#39;address_street&#38;#39;]}&#38;lt;/label&#38;gt;
		&#38;lt;/div&#38;gt;

		&#38;lt;div id=&#38;quot;li_{$element-&#38;gt;id}_div_2&#38;quot;&#38;gt;
			&#38;lt;input id=&#38;quot;element_{$element-&#38;gt;id}_2&#38;quot; name=&#38;quot;element_{$element-&#38;gt;id}_2&#38;quot; class=&#38;quot;element text large&#38;quot; value=&#38;quot;{$element-&#38;gt;populated_value[&#38;#39;element_&#38;#39;.$element-&#38;gt;id.&#38;#39;_2&#38;#39;][&#38;#39;default_value&#38;#39;]}&#38;quot; type=&#38;quot;text&#38;quot; /&#38;gt;
			&#38;lt;label for=&#38;quot;element_{$element-&#38;gt;id}_2&#38;quot;&#38;gt;{$lang[&#38;#39;address_street2&#38;#39;]}&#38;lt;/label&#38;gt;
		&#38;lt;/div&#38;gt;

		&#38;lt;div id=&#38;quot;li_{$element-&#38;gt;id}_div_3&#38;quot; class=&#38;quot;left&#38;quot;&#38;gt;
			&#38;lt;input id=&#38;quot;element_{$element-&#38;gt;id}_3&#38;quot; name=&#38;quot;element_{$element-&#38;gt;id}_3&#38;quot; class=&#38;quot;element text medium&#38;quot; value=&#38;quot;{$element-&#38;gt;populated_value[&#38;#39;element_&#38;#39;.$element-&#38;gt;id.&#38;#39;_3&#38;#39;][&#38;#39;default_value&#38;#39;]}&#38;quot; type=&#38;quot;text&#38;quot; /&#38;gt;
			&#38;lt;label for=&#38;quot;element_{$element-&#38;gt;id}_3&#38;quot;&#38;gt;{$lang[&#38;#39;address_city&#38;#39;]}&#38;lt;/label&#38;gt;
		&#38;lt;/div&#38;gt;

		&#38;lt;div id=&#38;quot;li_{$element-&#38;gt;id}_div_4&#38;quot; class=&#38;quot;right&#38;quot;&#38;gt;
			&#38;lt;input id=&#38;quot;element_{$element-&#38;gt;id}_4&#38;quot; name=&#38;quot;element_{$element-&#38;gt;id}_4&#38;quot; class=&#38;quot;element text medium&#38;quot;  value=&#38;quot;{$element-&#38;gt;populated_value[&#38;#39;element_&#38;#39;.$element-&#38;gt;id.&#38;#39;_4&#38;#39;][&#38;#39;default_value&#38;#39;]}&#38;quot; type=&#38;quot;text&#38;quot; /&#38;gt;
			&#38;lt;label for=&#38;quot;element_{$element-&#38;gt;id}_4&#38;quot;&#38;gt;{$lang[&#38;#39;address_state&#38;#39;]}&#38;lt;/label&#38;gt;
		&#38;lt;/div&#38;gt;

		&#38;lt;div id=&#38;quot;li_{$element-&#38;gt;id}_div_5&#38;quot; class=&#38;quot;left&#38;quot;&#38;gt;
			&#38;lt;input id=&#38;quot;element_{$element-&#38;gt;id}_5&#38;quot; name=&#38;quot;element_{$element-&#38;gt;id}_5&#38;quot; class=&#38;quot;element text medium&#38;quot; maxlength=&#38;quot;15&#38;quot; value=&#38;quot;{$element-&#38;gt;populated_value[&#38;#39;element_&#38;#39;.$element-&#38;gt;id.&#38;#39;_5&#38;#39;][&#38;#39;default_value&#38;#39;]}&#38;quot; type=&#38;quot;text&#38;quot; /&#38;gt;
			&#38;lt;label for=&#38;quot;element_{$element-&#38;gt;id}_5&#38;quot;&#38;gt;{$lang[&#38;#39;address_zip&#38;#39;]}&#38;lt;/label&#38;gt;
		&#38;lt;/div&#38;gt;

		&#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;&#38;amp;nbsp;{$guidelines} {$error_message}
		&#38;lt;/li&#38;gt;
EOT;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;replace with this&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;$element_markup = &#38;lt;&#38;lt;&#38;lt;EOT
		&#38;lt;li id=&#38;quot;li_{$element-&#38;gt;id}&#38;quot; {$error_class}&#38;gt;
		&#38;lt;label class=&#38;quot;description&#38;quot;&#38;gt;{$element-&#38;gt;title} {$span_required}&#38;lt;/label&#38;gt;

		&#38;lt;div id=&#38;quot;li_{$element-&#38;gt;id}_div_1&#38;quot;&#38;gt;
			&#38;lt;input id=&#38;quot;element_{$element-&#38;gt;id}_1&#38;quot; name=&#38;quot;element_{$element-&#38;gt;id}_1&#38;quot; class=&#38;quot;element text large&#38;quot; value=&#38;quot;{$element-&#38;gt;populated_value[&#38;#39;element_&#38;#39;.$element-&#38;gt;id.&#38;#39;_1&#38;#39;][&#38;#39;default_value&#38;#39;]}&#38;quot; type=&#38;quot;text&#38;quot; /&#38;gt;
			&#38;lt;label for=&#38;quot;element_{$element-&#38;gt;id}_1&#38;quot;&#38;gt;{$lang[&#38;#39;address_street&#38;#39;]}&#38;lt;/label&#38;gt;
		&#38;lt;/div&#38;gt;

		&#38;lt;div id=&#38;quot;li_{$element-&#38;gt;id}_div_2&#38;quot; style=&#38;quot;display:none !important&#38;quot;&#38;gt;
			&#38;lt;input id=&#38;quot;element_{$element-&#38;gt;id}_2&#38;quot; name=&#38;quot;element_{$element-&#38;gt;id}_2&#38;quot; class=&#38;quot;element text large&#38;quot; value=&#38;quot;{$element-&#38;gt;populated_value[&#38;#39;element_&#38;#39;.$element-&#38;gt;id.&#38;#39;_2&#38;#39;][&#38;#39;default_value&#38;#39;]}&#38;quot; type=&#38;quot;text&#38;quot; /&#38;gt;
			&#38;lt;label for=&#38;quot;element_{$element-&#38;gt;id}_2&#38;quot;&#38;gt;{$lang[&#38;#39;address_street2&#38;#39;]}&#38;lt;/label&#38;gt;
		&#38;lt;/div&#38;gt;

		&#38;lt;div id=&#38;quot;li_{$element-&#38;gt;id}_div_3&#38;quot; class=&#38;quot;left&#38;quot;&#38;gt;
			&#38;lt;input id=&#38;quot;element_{$element-&#38;gt;id}_3&#38;quot; name=&#38;quot;element_{$element-&#38;gt;id}_3&#38;quot; class=&#38;quot;element text medium&#38;quot; value=&#38;quot;{$element-&#38;gt;populated_value[&#38;#39;element_&#38;#39;.$element-&#38;gt;id.&#38;#39;_3&#38;#39;][&#38;#39;default_value&#38;#39;]}&#38;quot; type=&#38;quot;text&#38;quot; /&#38;gt;
			&#38;lt;label for=&#38;quot;element_{$element-&#38;gt;id}_3&#38;quot;&#38;gt;{$lang[&#38;#39;address_city&#38;#39;]}&#38;lt;/label&#38;gt;
		&#38;lt;/div&#38;gt;

		&#38;lt;div id=&#38;quot;li_{$element-&#38;gt;id}_div_4&#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}_4&#38;quot; name=&#38;quot;element_{$element-&#38;gt;id}_4&#38;quot;&#38;gt;
			{$state_markup}
			&#38;lt;/select&#38;gt;
			&#38;lt;label for=&#38;quot;element_{$element-&#38;gt;id}_4&#38;quot;&#38;gt;{$lang[&#38;#39;address_state&#38;#39;]}&#38;lt;/label&#38;gt;
		&#38;lt;/div&#38;gt;

		&#38;lt;div id=&#38;quot;li_{$element-&#38;gt;id}_div_5&#38;quot; class=&#38;quot;left&#38;quot;&#38;gt;
			&#38;lt;input id=&#38;quot;element_{$element-&#38;gt;id}_5&#38;quot; name=&#38;quot;element_{$element-&#38;gt;id}_5&#38;quot; class=&#38;quot;element text medium&#38;quot; maxlength=&#38;quot;15&#38;quot; value=&#38;quot;{$element-&#38;gt;populated_value[&#38;#39;element_&#38;#39;.$element-&#38;gt;id.&#38;#39;_5&#38;#39;][&#38;#39;default_value&#38;#39;]}&#38;quot; type=&#38;quot;text&#38;quot; /&#38;gt;
			&#38;lt;label for=&#38;quot;element_{$element-&#38;gt;id}_5&#38;quot;&#38;gt;{$lang[&#38;#39;address_zip&#38;#39;]}&#38;lt;/label&#38;gt;
		&#38;lt;/div&#38;gt;

		&#38;lt;div id=&#38;quot;li_{$element-&#38;gt;id}_div_6&#38;quot; class=&#38;quot;right&#38;quot; style=&#38;quot;display:none !important&#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;&#38;amp;nbsp;{$guidelines} {$error_message}
		&#38;lt;/li&#38;gt;
EOT;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;and to insert your state drop down value, go to around line 1351 and you'll find this :&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;$country[193][&#38;#39;value&#38;#39;] = &#38;quot;Zimbabwe&#38;quot;;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;add this code bellow that line&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;$state[0][&#38;#39;label&#38;#39;] = &#38;quot;australian&#38;quot;;
$state[0][&#38;#39;value&#38;#39;] = &#38;quot;australian&#38;quot;;
$state[1][&#38;#39;label&#38;#39;] = &#38;quot;australian1&#38;quot;;
$state[1][&#38;#39;value&#38;#39;] = &#38;quot;australian1&#38;quot;;

$state_markup = &#38;#39;&#38;#39; ;

foreach ($state as $data_state){
	$state_markup .= &#38;quot;&#38;lt;option value=\&#38;quot;{$data_state[&#38;#39;value&#38;#39;]}\&#38;quot; &#38;gt;{$data_state[&#38;#39;label&#38;#39;]}&#38;lt;/option&#38;gt;\n&#38;quot;;
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;To change your address field label, you should edit &#34;includes/languages.php&#34;, try to search &#34;address&#34; section in there. You should find this :&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;//address
$lang[&#38;#39;address_street&#38;#39;]		=	&#38;#39;Street Address&#38;#39;;
$lang[&#38;#39;address_street2&#38;#39;]	=	&#38;#39;Address Line 2&#38;#39;;
$lang[&#38;#39;address_city&#38;#39;]		=	&#38;#39;City&#38;#39;;
$lang[&#38;#39;address_state&#38;#39;]		=	&#38;#39;State / Province / Region&#38;#39;;
$lang[&#38;#39;address_zip&#38;#39;]		=	&#38;#39;Postal / Zip Code&#38;#39;;
$lang[&#38;#39;address_country&#38;#39;]	=	&#38;#39;Country&#38;#39;;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Change the value as your requirement
&#60;/p&#62;</description>
</item>
<item>
<title>webcommerce on "Address Label Changes"</title>
<link>https://www.machform.com/forums/topic/address-label-changes#post-5032</link>
<pubDate>Sat, 14 Mar 2009 09:32:35 +0000</pubDate>
<dc:creator>webcommerce</dc:creator>
<guid isPermaLink="false">5032@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;I want to make the following changes to the Address label on my form:&#60;/p&#62;
&#60;p&#62;1. Remove address2 input line&#60;br /&#62;
2. Change Zip etc to PostCode&#60;br /&#62;
3. Change State etc to just State, with dropdown box choices (Australian)&#60;br /&#62;
4. Remove Country dropdown completely&#60;/p&#62;
&#60;p&#62;Is it possible to do this?&#60;br /&#62;
Or do I need to set it up as separate labels for each input? If this is the only way to do it, is there any way I can put a box border around this group of labels?&#60;/p&#62;
&#60;p&#62;I have seen some discussion about the address label on the forum, but nothing that seems to be what I want to achieve. Hopefully, there is a solution??&#60;/p&#62;
&#60;p&#62;Regards,&#60;br /&#62;
Ron S
&#60;/p&#62;</description>
</item>

</channel>
</rss>
