CodeCharge Studio
search Register Login  

Visual PHP Web Development

Visually Create Internationalized Web Applications, Web Reports, Calendars, and more.
CodeCharge.com

YesSoftware Forums -> Archive -> GotoCode Archive

 display custom error message

Print topic Send  topic

Author Message
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 ?

   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Web Database

Join thousands of Web developers who build Web applications with minimal coding.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.