CG Gurus,
I have a need for server side validation of the CGEdit control. I have read everything I can find on the forum and still not figured it out.
Please advise
Regards
Monte Carver
with ePass0.JQValidateOptions do
begin
Enable:= True;
Rules.Clear;
lRule := Rules.Add;
// HOW SHOULD THE RULE BE SET FOR A SERVER SIDE VALIDATION?
lRule.Rule := jqvorvRemote;
lRule.ErrorMessage := 'Password is not complex.;
procedure myPage.OnSubmit
begin
if NOT fxIsPasswordComplex then
begin
ePass0.JQValidateOptions.IsValid := False;
ePass0.JQValidateOptions.Validate;
end;
end;