Help with getObj("FileUpload1").fileUpload.clear();
Posted: Fri Aug 28, 2015 4:42 am
Hi,
I have a situation where I file upload widget with two buttons, either accept upload or cancel upload, but in both circumstances return control to my program and then continue processing.
The problem I encountered is that if someone selects a file to upload in the widget, but doesn't clear the file out before returning control, the upload occurs automatically. I am therefore trying to use the getobj clear function to clear the list and then return press the relevant cancel button to return control.
At present my onclick script : - getObj("FUPREQDOCS").fileUpload.clear();
pui.click("ButRdlCnl");
When processing I get the error : - Onclick Error:
Object doesn't support property or method 'clear'
Please could you assist?
I have a situation where I file upload widget with two buttons, either accept upload or cancel upload, but in both circumstances return control to my program and then continue processing.
The problem I encountered is that if someone selects a file to upload in the widget, but doesn't clear the file out before returning control, the upload occurs automatically. I am therefore trying to use the getobj clear function to clear the list and then return press the relevant cancel button to return control.
At present my onclick script : - getObj("FUPREQDOCS").fileUpload.clear();
pui.click("ButRdlCnl");
When processing I get the error : - Onclick Error:
Object doesn't support property or method 'clear'
Please could you assist?