<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><title></title>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<meta http-equiv="Content-Style-Type" content="text/css">
<style type="text/css"><!--
body {
  margin: 5px 5px 5px 5px;
  background-color: #ffffff;
}
/* ========== Text Styles ========== */
hr { color: #000000}
body, table /* Normal text */
{
 font-size: 12pt;
 font-family: 'Courier New';
 font-style: normal;
 font-weight: normal;
 color: #000000;
 text-decoration: none;
}
span.rvts1 /* Heading */
{
 font-size: 10pt;
 font-family: 'Arial';
 font-weight: bold;
 color: #0000ff;
}
span.rvts2 /* Subheading */
{
 font-size: 10pt;
 font-family: 'Arial';
 font-weight: bold;
 color: #000080;
}
span.rvts3 /* Keywords */
{
 font-size: 10pt;
 font-family: 'Arial';
 font-style: italic;
 color: #800000;
}
a.rvts4, span.rvts4 /* Jump 1 */
{
 font-size: 10pt;
 font-family: 'Arial';
 color: #008000;
 text-decoration: underline;
}
a.rvts5, span.rvts5 /* Jump 2 */
{
 font-size: 10pt;
 font-family: 'Arial';
 color: #008000;
 text-decoration: underline;
}
span.rvts6
{
 font-size: 11pt;
 font-family: 'tahoma';
 font-weight: bold;
 color: #ffffff;
 background-color: #0000ff;
}
span.rvts7
{
}
span.rvts8
{
 font-size: 9pt;
 font-family: 'tahoma';
}
span.rvts9
{
 font-size: 9pt;
 font-family: 'tahoma';
 font-weight: bold;
}
/* ========== Para Styles ========== */
p,ul,ol /* Paragraph Style */
{
 text-align: left;
 text-indent: 0px;
 padding: 0px 0px 0px 0px;
 margin: 0px 0px 0px 0px;
}
.rvps1 /* Centered */
{
 text-align: center;
}
--></style>
</head>
<body>

<p>Thursday, March 20, 2008, 11:15:21 PM, Hans wrote:</p>
<p><br></p>
<div><table border=0 cellpadding=1 cellspacing=2>
<tr valign=top>
<td width=12 style="background-color: #0000ff;">
<p><span class=rvts6>&gt;</span></p>
</td>
<td width=818 style="background-color: #ffffff;">
<p><span class=rvts7>Tuesday, March 18, 2008, 9:39:20 PM, Sameer Kumar wrote</span></p>
<p><br></p>
<div><table border=0 cellpadding=1 cellspacing=2>
<tr valign=top>
<td width=12 style="background-color: #0000ff;">
<p><span class=rvts6>&gt;</span></p>
</td>
<td width=350 style="background-color: #ffffff;">
<p><span class=rvts8>When there is an error in the input I get two message</span></p>
<p><span class=rvts9>Please enter a Project Numbe</span></p>
<p><span class=rvts9>Please enter valid input!</span></p>
<p><span class=rvts8>How can I remove the second line? Or do you think I should no</span></p>
</td>
</tr>
</table>
</div>
<p><br></p>
<p><span class=rvts7>I have not made this configurable. It probably should</span></p>
</td>
</tr>
</table>
</div>
<p><br></p>
<p>Now with the latest fox.php release you can change</p>
<p>the general foxcheck error message&nbsp;<span class=rvts9>Please enter valid input! &nbsp;&nbsp;</span>by</p>
<p><br></p>
<p>a) setting a different default message with a config variable</p>
<p>&nbsp; &nbsp;$FoxCheckErrorMsg = "my default general validation error messsage";</p>
<p>b) set a form-specific fox validation check message in the form with</p>
<p>&nbsp; &nbsp;parameter foxcheckmsg="my error message";</p>
<p>c) suppress the general message by setting foxcheckmsg='' in the form markup;</p>
<p>d) or in config.php with $FoxCheckErrorMsg = ''; &nbsp;</p>
<p>e) or using (:foxmessages formname list=check:) which will only show error&nbsp;</p>
<p>&nbsp; &nbsp;messages generated by (:foxcheck fieldname ... msg="custom error message" :)</p>
<p><br></p>
<p>I hope this system for form field validation errors is flexibel enough.</p>
<p>Feedback and questions most welcome!</p>
<p><br></p>
<p>&nbsp; ~Hans</p>

</body></html>