<?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: Populating State Field</title>
<link>https://www.machform.com/forums/</link>
<description>MachForm Community Forums Topic: Populating State Field</description>
<language>en</language>
<pubDate>Mon, 04 May 2026 02:06:25 +0000</pubDate>

<item>
<title>redityo on "Populating State Field"</title>
<link>https://www.machform.com/forums/topic/populating-state-field#post-8591</link>
<pubDate>Tue, 02 Feb 2010 18:21:02 +0000</pubDate>
<dc:creator>redityo</dc:creator>
<guid isPermaLink="false">8591@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;I see, you can set the default value for &#34;state&#34; field by editing &#34;includes/view-functions.php&#34; file. Go to around line 1383 for this code :&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;foreach ($country as $data){&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;then put this code exactly above that line &#60;/p&#62;
&#60;pre&#62;&#60;code&#62;$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;state&#38;quot;;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;and to remove &#34;country&#34; field, you can simply hide it by CSS, try to put these CSS code in your form :&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;#li_4_div_6 {
display:none !important;
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;in there I assume your address field id is 4, you need to change those ID with yours.
&#60;/p&#62;</description>
</item>
<item>
<title>MarioCipriano on "Populating State Field"</title>
<link>https://www.machform.com/forums/topic/populating-state-field#post-8586</link>
<pubDate>Tue, 02 Feb 2010 11:55:03 +0000</pubDate>
<dc:creator>MarioCipriano</dc:creator>
<guid isPermaLink="false">8586@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;No, I am would like to set it in the HTML code or using CSS.  I am not attempting to fill the field via the URL.  I would also like to remove country.
&#60;/p&#62;</description>
</item>
<item>
<title>redityo on "Populating State Field"</title>
<link>https://www.machform.com/forums/topic/populating-state-field#post-8585</link>
<pubDate>Tue, 02 Feb 2010 11:13:53 +0000</pubDate>
<dc:creator>redityo</dc:creator>
<guid isPermaLink="false">8585@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;How you will populate the field ? is it by your form url? for exmaple when a user access the form with this url :&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://www.yourdomain.com/machform/view.php?id=2&#38;#38;state=ABC&#34; rel=&#34;nofollow&#34;&#62;http://www.yourdomain.com/machform/view.php?id=2&#38;#38;state=ABC&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;then state field would be filled with &#34;ABC&#34;. If so, you can try to use the method that posted in here :&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://www.appnitro.com/forums/topic/dynamic-content-php?replies=25#post-4445&#34; rel=&#34;nofollow&#34;&#62;http://www.appnitro.com/forums/topic/dynamic-content-php?replies=25#post-4445&#60;/a&#62;
&#60;/p&#62;</description>
</item>
<item>
<title>MarioCipriano on "Populating State Field"</title>
<link>https://www.machform.com/forums/topic/populating-state-field#post-8581</link>
<pubDate>Tue, 02 Feb 2010 03:47:49 +0000</pubDate>
<dc:creator>MarioCipriano</dc:creator>
<guid isPermaLink="false">8581@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;I would like to pre-populate the state field.
&#60;/p&#62;</description>
</item>

</channel>
</rss>
