Steve F.
|
| Posted: 09/12/2002, 9:16 AM |
|
I have a integer field in a form with a list of values of: 1;Yes;0;No
If I make this a required field and select "No", the form returns stating that the field is required, forcing me to either select "Yes" or make the field uinrequired.
Any idea as to what is causing this?
Thanks,
Steve
|
|
|
 |
Ron
|
| Posted: 09/16/2002, 12:48 AM |
|
Steve,
to overcome the problem, edit Validate() function in Classes.php file. Replace
the line
if($this->Required && ($this->Value == "" && $this->Value !== false) && $this->Errors->Count() == 0)
with
if($this->Required && (strlen($this->Value) == 0 && $this->Value !== false) && $this->Errors->Count() == 0)
|
|
|
 |
|