The stakeholders of my sharepoint site asked me to make version comments mandatory on check in of documents to our controlled documents space, and they also asked me to set it up so the version comment field comes pre filled with some content to guide users on how to format their comments. Making comments mandatory was easy enough to achieve with a simple event receiver as outlined here (http://stackoverflow.com/questions/9715038/sharepoint-2010-document-library-versions-comment)
I was wondering if anyone had any suggestions as to how to assign a default value to the comment field.
This is for an O365 (sharepoint 2013 online) implementation of Sharepoint.
Thanks in advance.
Dave.
Somebody suggested a solution for me on stackexchange, I thought I’d share it here as well.
Here is the script
function addCommentDefaultValue() {
if (document.URL.indexOf(‘checkin.aspx’) != -1) {
$(“#CheckinDescription”).text(“Change this text in custom.js to define default comment value”);
}
}
$(document).ready(function () {
addCommentDefaultValue();
});