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 -> ASP

 Required value on search form

Print topic Send  topic

Author Message
ekendricks

Posts: 34
Posted: 11/21/2005, 12:43 PM

Using ASP - Sql-2K - CCS 3

I have a search form with five possible search values. BookNumber -LastName-FirstName-Employee-(Start & End Date. ) If I set the required property to "YES" then all fields are required. What I need to accomplish is to check that atleast one field OR both Date Fields contain a value, BEFORE submitting to the "List Page".

An anyone suggest where and how I can accomplish this?

Thanks

Ernest
View profile  Send private message
Edd


Posts: 547
Posted: 11/21/2005, 2:10 PM

Use the "OnValidate" event and test if at least one value has been completed.

Edd
_________________
Accepting and instigating change are life's challenges.

http://www.syntech.com.au
View profile  Send private message
Ernest
Posted: 12/15/2005, 8:11 AM

Thanks for your reply earlier. I have tried to figure out where, what and how to no avail. Could I impose upon you to give me a bit more specifics on how to accomplish this task?

Thanks in advance

Ernest
peterr


Posts: 5971
Posted: 12/15/2005, 2:27 PM

Ernest,

I just tested this and couldn't reproduce such problem. If I have several search fields and specify one of them as Required then all others aren't Required. This works OK for me and only that 1 required field is required. I guess the product support can look at the issues where you have a problem with all fields being required, even when only of them is set to Required.

As for Edd suggestions, you can search the CCS Help file for "OnValidate". There couple examples on how to do this programmatically.
Indeed the Required property is available only to solve one specific validation scenario.
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com
View profile  Send private message

Add new 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.

PHP Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


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