1

I have multiple document libraries in my sub-site.

I want to uncheck the check - box appears on the upload form.

Whenever user uploads form the form should appear with the check box unchecked.

I referred this article but not helped me.

How should I do? Please provide any reference site or help..

  • Please check this , it may helpful to you. Clickhere – phani Sep 8 '16 at 17:43
1

Have done this - it's simple once you know how, just search for "OverwriteSingle" inside Upload.aspx:

\Program Files\Common Files\Microsoft Shared\Web Server Extensions\15\TEMPLATE\LAYOUTS\Upload.aspx

Note this is SP2013 but same should apply in SP2010, just change the 15 above to 14.

Make a copy for backup so you can revert back to it if nec, then change the Checked="true" to Checked="false":

<td><asp:CheckBox id="OverwriteSingle" Checked="true" Text="<%$Resources:wss,upload_document_overwrite_file%>" runat="server" CssClass="ms-upload-overwrite-cb" /></td>

That should do the trick! HTH, Phil.

  • Will it be useful to un-check in specific library? – users1100 Aug 19 '13 at 8:57
  • No - because it's the upload.aspx page itself, it will apply right across the system. Your post didn't state you need it on a per-library basis (just that you had multiple libraries, like most folk), I don't know best way to achieve that, maybe you should open another Question specifically for that case, someone may know a good way through client script, event receiver etc. – TickboxPhil Aug 19 '13 at 9:33
0

Without customzing Upload.aspx page, we can uncheck the checkbox and modify the contents of "Overwrite existing file" for a specific library using below steps:

1) Create a js file and refer it in master page.

2) Note down the GUID of library.

3) Add the below code in js file.

$(document).ready(function () {
if (location.href.indexOf('2C63AAA5-BC95-41E4-A199-B7658F44736B') >= 0)
{       $('#ctl00_PlaceHolderMain_UploadDocumentSection_ctl05_OverwriteSingle').prop('checked', false);  
        $("label[for='ctl00_PlaceHolderMain_UploadDocumentSection_ctl05_OverwriteSingle']").text("My Custom"); 
}   
});

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.