Hi Forum,
I am doing a CRM IC web client BSP application, where I am facing a problem with the file attachment for the mail.
I want to submit the page only when the fileupload control has some value.
The code snippet in the attachment view is as follows
.......
.......
<script>
function isSumbitable()
{
// Here how do I get the value of the fileupload???
// neither document.forms[0].myFileUpload1.value nor //document.getElementById('myFileUpload1') works here
}
</script>
.......
.......
<htmlb:fileUpload id = "myFileUpload1"
size = "50"/>
<htmlb:button id = "submitButton"
text = "Upload"
onClick = "HandleUpload"
onClientClick = "if(!isSumbitable()) htmlbevent.cancelSubmit=true;" />
.......
.......
Note:
The above code is not enclosed with <form>
Any help is highly appreciatable.
Regards,
Lakshminarayana