John Garner
|
| Posted: 06/10/2003, 6:21 AM |
|
hi all, i'm quite new to codecharge studio and any help would be appreciated.
I would like to be able to retreive a count on a fixed number of fields (lets say 6) where the value is not null, and then when the add button is clicked compare the result with another field that holds a value.
If the value is not the same as the first then prevent the form being submitted and display a error message.
thanks in advance
John
|
|
|
 |
Karen
|
| Posted: 06/10/2003, 8:23 AM |
|
Code the condition in the OnValidate event of the form. Goes something like this (PHP):
if (condition)
$form->Errors->addError("Your error message to prevent submit");
Hope that helps!
|
|
|
 |
|