how can i set file attachment as mandatory at run time
Hi Mohammed, You can create some conditional Java Script to achieve this. Here is an example http://www.webteacher.com/javascript/ch03_1.html I am not sure but this will give you some idea.Regards, Pratik Vyas | SharePoint Consultant | http://sharepointpratik.blogspot.com/
January 20th, 2011 3:41pm

File upload control uses Http post and Stream class, you can verify the length of the stream when you want to mandate the File upload control. Stream myStream = fileUpload.PostedFile.InputStream; if(myStream.length>0) { //do some work } Aravind http://aravindrises.blogspot.com
Free Windows Admin Tool Kit Click here and download it now
January 20th, 2011 4:23pm

Hi All, i have a form in which i have to set file attachment control as mandatory if the radio button is selected. Eg: i have three radio button 1) Completed 2) In-Progress and 3)Cancellecd. when user selected "completed" radio button then a mandatory flag is to be shown on file attachment control and unless and untill he didnot attached document to that control the form should not be submitted Please help me to achieve this task Thanks in advanceMohammed
January 20th, 2011 4:30pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics