al
|
| Posted: 08/16/2002, 9:41 AM |
|
I am trying to build a page in ccs php4 with templates that emails the users password to him. I have gotten it all to work except I want to be able to put in my own custom error messages on the form when it comes back with some type of problem. In other words how do I put my own words into the {error} field in the after insert custom event code.
Thanks
|
|
|
 |
Alex Alexapolsky
|
| Posted: 08/17/2002, 5:12 AM |
|
Your code must be like this :
FormName.FieldName.Errors.addError("Invalid Email")
|
|
|
 |
Superkikim
|
| Posted: 11/03/2002, 8:30 AM |
|
I'mve tried the proposed solution. It works but it shows first a default error message, i.e. "Field blablabla is required", then it shows the custom error message.
How to avoid the default error message to be printed ?
|
|
|
 |
|