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