		<?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>Appnitro Software Forums Topic: First address field is not checked?</title>
<link>http://www.appnitro.com/forums/</link>
<description>Appnitro Software Forums Topic: First address field is not checked?</description>
<language>en</language>
<pubDate>Tue, 07 Feb 2012 09:56:05 +0000</pubDate>

<item>
<title>MvdL79 on "First address field is not checked?"</title>
<link>http://www.appnitro.com/forums/topic/first-address-field-is-not-checked#post-2192</link>
<pubDate>Thu, 26 Jun 2008 15:15:52 +0000</pubDate>
<dc:creator>MvdL79</dc:creator>
<guid isPermaLink="false">2192@http://www.appnitro.com/forums/</guid>
<description>&#60;p&#62;Fixed thanks to Yuniar! :D
&#60;/p&#62;</description>
</item>
<item>
<title>yuniar on "First address field is not checked?"</title>
<link>http://www.appnitro.com/forums/topic/first-address-field-is-not-checked#post-2183</link>
<pubDate>Wed, 25 Jun 2008 22:33:54 +0000</pubDate>
<dc:creator>yuniar</dc:creator>
<guid isPermaLink="false">2183@http://www.appnitro.com/forums/</guid>
<description>&#60;p&#62;Hmm.. that's odd. I've tested it and it should be working.&#60;br /&#62;
Can you send me your file please?&#60;/p&#62;
&#60;p&#62;Mail to: customer.service [at] appnitro.com
&#60;/p&#62;</description>
</item>
<item>
<title>MvdL79 on "First address field is not checked?"</title>
<link>http://www.appnitro.com/forums/topic/first-address-field-is-not-checked#post-2182</link>
<pubDate>Wed, 25 Jun 2008 20:41:09 +0000</pubDate>
<dc:creator>MvdL79</dc:creator>
<guid isPermaLink="false">2182@http://www.appnitro.com/forums/</guid>
<description>&#60;p&#62;Okay I did exactly what you said (I removed the old part and replaced it with the new lines), but now it stays red (as if the fields are not filled in at all)!&#60;/p&#62;
&#60;p&#62;No matter if they fill in the required field, the check continues to say it's not filled in... Arghh....
&#60;/p&#62;</description>
</item>
<item>
<title>yuniar on "First address field is not checked?"</title>
<link>http://www.appnitro.com/forums/topic/first-address-field-is-not-checked#post-2174</link>
<pubDate>Tue, 24 Jun 2008 13:42:19 +0000</pubDate>
<dc:creator>yuniar</dc:creator>
<guid isPermaLink="false">2174@http://www.appnitro.com/forums/</guid>
<description>&#60;p&#62;Hmm.. I think you both are correct.&#60;/p&#62;
&#60;p&#62;The validation for address field is not that specific for each field. It's more general indeed, as &#34;the address details are incomplete&#34;.&#60;/p&#62;
&#60;p&#62;However, the first address field should be checked for its value (empty or not), and not the second address field.&#60;/p&#62;
&#60;p&#62;To fix this issue, edit your &#60;strong&#62;includes/post-functions.php&#60;/strong&#62; file.&#60;br /&#62;
Search around line 461 - 474:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;if($element_info[$element_id][&#38;#39;is_required&#38;#39;]){
	$rules[$element_name_3][&#38;#39;required&#38;#39;] = true;
	$rules[$element_name_4][&#38;#39;required&#38;#39;] = true;
	$rules[$element_name_5][&#38;#39;required&#38;#39;] = true;
	$rules[$element_name_6][&#38;#39;required&#38;#39;] = true;
}

$target_input[$element_name_3] = $user_input[$element_name_3];
$target_input[$element_name_4] = $user_input[$element_name_4];
$target_input[$element_name_5] = $user_input[$element_name_5];
$target_input[$element_name_6] = $user_input[$element_name_6];&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;&#60;code&#62;&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;change the above block of code to be like this:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;if($element_info[$element_id][&#38;#39;is_required&#38;#39;]){
	$rules[$element_name][&#38;#39;required&#38;#39;] = true;
	$rules[$element_name_3][&#38;#39;required&#38;#39;] = true;
	$rules[$element_name_4][&#38;#39;required&#38;#39;] = true;
	$rules[$element_name_5][&#38;#39;required&#38;#39;] = true;
	$rules[$element_name_6][&#38;#39;required&#38;#39;] = true;
}

$target_input[$element_name]   = $user_input[$element_name];
$target_input[$element_name_3] = $user_input[$element_name_3];
$target_input[$element_name_4] = $user_input[$element_name_4];
$target_input[$element_name_5] = $user_input[$element_name_5];
$target_input[$element_name_6] = $user_input[$element_name_6];&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;&#60;code&#62;&#60;/code&#62;&#60;br /&#62;
That should fix it.
&#60;/p&#62;</description>
</item>
<item>
<title>AMurray on "First address field is not checked?"</title>
<link>http://www.appnitro.com/forums/topic/first-address-field-is-not-checked#post-2172</link>
<pubDate>Mon, 23 Jun 2008 18:38:03 +0000</pubDate>
<dc:creator>AMurray</dc:creator>
<guid isPermaLink="false">2172@http://www.appnitro.com/forums/</guid>
<description>&#60;p&#62;I don't believe that Machform is designed to work the way you're thinking. &#60;/p&#62;
&#60;p&#62;The validation is not that specific as to give a message saying for example: &#34;You haven't filled in the postcode field, please try again&#34;.&#60;/p&#62;
&#60;p&#62;It seems to be more general as in: &#34;The address details are incomplete; please complete them before continuing&#34;.
&#60;/p&#62;</description>
</item>
<item>
<title>MvdL79 on "First address field is not checked?"</title>
<link>http://www.appnitro.com/forums/topic/first-address-field-is-not-checked#post-2170</link>
<pubDate>Mon, 23 Jun 2008 14:51:11 +0000</pubDate>
<dc:creator>MvdL79</dc:creator>
<guid isPermaLink="false">2170@http://www.appnitro.com/forums/</guid>
<description>&#60;p&#62;I mean the the check if the addres is filled in or if it's empty... :S
&#60;/p&#62;</description>
</item>
<item>
<title>yuniar on "First address field is not checked?"</title>
<link>http://www.appnitro.com/forums/topic/first-address-field-is-not-checked#post-2143</link>
<pubDate>Fri, 20 Jun 2008 22:22:50 +0000</pubDate>
<dc:creator>yuniar</dc:creator>
<guid isPermaLink="false">2143@http://www.appnitro.com/forums/</guid>
<description>&#60;p&#62;Hmm.. what do you mean by the first address field is not checked? What checking?
&#60;/p&#62;</description>
</item>
<item>
<title>MvdL79 on "First address field is not checked?"</title>
<link>http://www.appnitro.com/forums/topic/first-address-field-is-not-checked#post-2133</link>
<pubDate>Fri, 20 Jun 2008 21:45:38 +0000</pubDate>
<dc:creator>MvdL79</dc:creator>
<guid isPermaLink="false">2133@http://www.appnitro.com/forums/</guid>
<description>&#60;p&#62;I tried several things, but it just ignores to check the streetname.... :(&#60;br /&#62;
Zip code, etc. it checks fine...&#60;/p&#62;
&#60;p&#62;Please advice...
&#60;/p&#62;</description>
</item>
<item>
<title>MvdL79 on "First address field is not checked?"</title>
<link>http://www.appnitro.com/forums/topic/first-address-field-is-not-checked#post-2124</link>
<pubDate>Thu, 19 Jun 2008 21:38:52 +0000</pubDate>
<dc:creator>MvdL79</dc:creator>
<guid isPermaLink="false">2124@http://www.appnitro.com/forums/</guid>
<description>&#60;p&#62;Hi Yuniar,&#60;/p&#62;
&#60;p&#62;It seems the first address field is not checked? I do not care about the 2nd address field, but the first one is important.&#60;/p&#62;
&#60;p&#62;Please advice on how to enable the check on 1st address field. TY
&#60;/p&#62;</description>
</item>

</channel>
</rss>

