Hi,
There was requirement from our customer to restrict check out from the user.
We have a document library on the page which was added through list view web part.
We have written the below script to restrict user to check out the document.
<script type="text/javascript">
var intervalId2 = setInterval(" OverrideOpenFuncs2()", 1000);
function OverrideOpenFuncs2()
{
CheckoutDocument = function (strhttpRoot, strDocument, strOpenControl)
{
alert('This Library does not support Checking Out documents. To modify the metadata on this document, please select "Edit Item"');
}
}
setTimeout("window. clearInterval(intervalId2);", 10000);
</script>
Post clicking on the checkout option, user was getting the below dialog box
No comments:
Post a Comment