Hi
I have a form with a standard Notes File Upload
but when a dropdown list maks an refresh the path to the field in the upload field disappear!
How do I prevent it from doing so?
Regards Kim ÿ
Hi
I have a form with a standard Notes File Upload
but when a dropdown list maks an refresh the path to the field in the upload field disappear!
How do I prevent it from doing so?
Regards Kim ÿ
Subject: File upload AND Refresh
If the file upload field value ISN’T cleared, the file will be uploaded a second time (the file was uploaded when the form was submitted for refresh).
Subject: File upload AND Refresh
I have found out that after the form has been refreshed the file is still atached.
I made a computed field and when the form refreshes I see this:
/edb/udvikling/Rex/A-Test.nsf/0/B110E998FE11A49BC12570000022373A/$file/Poul Krebs - Små Sensationer.jpg
The file is still there but after the form has been submited the file is gone! ![]()
Any suggestion?
Regards Kim ÿ
Subject: RE: File upload AND Refresh
How are you submitting the form?
Subject: RE: File upload AND Refresh
Hi
I’m am using JavaScript;
FIRST a button with onClick=“call some JavaScript”
THEN
var form = window.document.forms[0];
// A lots of code here and then
form.submit();
because I have to check some fields before
submit’ing the form!
Regards Kim ÿ
Subject: RE: File upload AND Refresh
Validate from the onsubmit event of the form:
return validate();
where “validate()” is the name of your validation function. If your validation code runs this statement:
return false;
the form will not submit. Now that the form is set up to submit correctly, use Formula Language to do the actual submission:
@Command([FileSave]);
@Command([FileCloseWindow])
That will put the correct value into the hidden reserved __Click field for your form to process correctly at the server.
Subject: RE: File upload AND Refresh
Hi
I will try so!
Thanks for your help!
Regards
Kim ÿ
Subject: File upload AND Refresh
I’ve seen this behavior too. The only thing I can suggest is to include the upload object as far down in the form as possible (after the field that causes the refresh) and, if possible, validate the object to make sure that users don’t forget the attachment. Also, do you HAVE to refresh? Can you write something with javascript instead of refreshing?