CodeCharge Studio
search Register Login  

Visual PHP Web Development

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

YesSoftware Forums -> CodeCharge Studio -> PHP

 Error Reporting on upload form

Print topic Send  topic

Author Message
Wreckmaster

Posts: 48
Posted: 10/09/2016, 1:29 AM Quote message

I have an img upload form, I would like to create an error message if the user does not select an image.
In CCS I have set the upload component as a required field but this does nothing, so I set the field in the data base to required field, this now returns.
" Database Error: Column 'msg_img' cannot be null "
I would the message to read some thing like "You forgot the Image" but can not figure out how to use the error control for the form .
Any examples or advise welcome .
View profile  Send private message
DataDoIT
Posted: 10/09/2016, 8:20 AM Quote message

Turn off the Required Yes setting. Then, in the Events tab for the
upload control add a Validate Required Minimum Length event and set to
1, along with your custom error message.

Add new topic Reply to topic Subscribe to topic   


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

Internet Database

Visually create Web enabled database applications in minutes.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


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