1

It's possible open the check in form with JQuery?

I need do this to force the user to do check in in the document.

1 Answer 1

0

There is a CheckInFile web service operation. If you are using the SPServices library, there is an operation for that (copied from the documentation):

// Check in a single document, disable all of the column controls and give a visual cue that it is checked in
 function checkInDocument(obj, pageUrl) {
  var success = true;
  $().SPServices({
   operation: "CheckInFile",
   async: false,
   pageUrl: pageUrl,
   comment: "Checked in during bulk upload",
   CheckinType: 1,
   completefunc: function (xData, Status) {
    $(xData.responseXML).find("errorstring").each(function() {
     alert($(this).text() + " Please save all of your changes before attempting to check in the document.");
     success = false;
    });
   }
  });
  // If we couldn't check the document in, then don't disable the item's row
  if(!success) return success;

  return success;
 }

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.