lbarrow
Posts: 8
|
| Posted: 02/22/2006, 12:13 PM |
|
I am using the file upload component with ActiveFile Upload by Infomentum and it works well. I want to require that a document be attached, if a certain field is > 0. If I try to use the ON VALIDATE event for this, the file gets uploaded to the TEMP folder, then the page clears the file upload field and the users receives the ON VALIDATE error message. Here is my ON VALIDATE code:
IF book.pcs.value>0 and isempty(book.bupload1.value) then
book.errors.adderror("You must attach a document for any order with pcs.")
end if
I have also tried:
IF book.pcs.value>0 and not book.bupload1.isuploaded then
book.errors.adderror("You must attach a document for any order with pcs.")
end if
Either way gets me the same result. What am I doing wrong?
Thanks,
Lorraine
|
 |
 |
|