<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[FrontAccounting forum — Validate fields]]></title>
	<link rel="self" href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=4550&amp;type=atom" />
	<updated>2013-11-25T22:09:12Z</updated>
	<generator>PunBB</generator>
	<id>https://frontaccounting.com/punbb/viewtopic.php?id=4550</id>
		<entry>
			<title type="html"><![CDATA[Re: Validate fields]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=18561#p18561" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[ostertagi]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=18743</uri>
			</author>
			<updated>2013-11-25T22:09:12Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=18561#p18561</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Validate fields]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=18556#p18556" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[topekenneth]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=18768</uri>
			</author>
			<updated>2013-11-25T14:23:20Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=18556#p18556</id>
		</entry>
</feed>
