<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[FrontAccounting forum — Validate fields]]></title>
		<link>https://frontaccounting.com/punbb/viewtopic.php?id=4550</link>
		<atom:link href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=4550&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Validate fields.]]></description>
		<lastBuildDate>Mon, 25 Nov 2013 22:09:12 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Validate fields]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=18561#p18561</link>
			<description><![CDATA[<p>something like this, i think at the beginning of the page:<br /></p><div class="codebox"><pre><code>     if (strlen($_POST[&#039;dimension&#039;]) == &#039;&#039;) 
    {
        $input_error = 1;
        display_error( _(&quot;The dimension name must be entered.&quot;));        
        set_focus(&#039;dimension&#039;);
    }</code></pre></div><p>if you want to force the user to choose a specific value&nbsp; in particular, the best way is to use hidden or an output field where the user can&#039;t modify it.</p>]]></description>
			<author><![CDATA[null@example.com (ostertagi)]]></author>
			<pubDate>Mon, 25 Nov 2013 22:09:12 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=18561#p18561</guid>
		</item>
		<item>
			<title><![CDATA[Validate fields]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=18556#p18556</link>
			<description><![CDATA[<p>Hi,</p><p>I would like to know how i can go about validating fields from our invoice for example.</p><p>We want a situation where users must select the same branch, price lists and dimension. We want FA to be able to warn the user if 1. they fail to pick any of these fields and 2. to ensure that the fields picked match.</p><p>Any ideas on how to go about this please?</p>]]></description>
			<author><![CDATA[null@example.com (topekenneth)]]></author>
			<pubDate>Mon, 25 Nov 2013 14:23:20 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=18556#p18556</guid>
		</item>
	</channel>
</rss>
