Document Library and checkbox field.
Many new SharePoint users want to add a checkbox on the document library view page, so that they can select multiple documents for batch processing. For example, you want to modify document library attributes in batches, download files in batches, and print files in batches.
A simple tool is provided here, which makes it easy for you to create a checkbox field in the document library. You only need to provide four parameters:
Site: the URL of the website.
Web URL: indicates the relative URL of the web.
List: the name of the document library.
Field name: provide a field name
Click "add checkbox field". A checkbox field is created successfully. For example:
Note: This tool must be executed on the Sharepoint Server.
The checkbox field itself provides a click event to call the setvalue () method. Its checkbox value is the item ID. By providing such an interface, you can easily do what you want to do. By Rewriting the setvalue () method, you can record the ID of the item corresponding to the selected document, and implement the desired functions by calling Web service or httphandler through JS, such as batch download, modify the attributes of items in batches...
Download Tool
Download Code