I have overridden SharePoint ribbon save function using _spFormOnSubmitWrapper() on my js code.

I am getting

"SCRIPT5002: function expected"

error when I try to check in page when debugger window is open in IE.

Click event of check in dialog ok button:

//check in dialog ok button
$(document).on("click", "#statechangedialog_okbutton", function () {
    _spFormOnSubmitWrapper = false;


enter image description here

Is there any solution for this?


Since you are overriding Save operation. It will cause conflict when Save is performed via Browser.

Update the script via SharePoint designer instead.

| improve this answer | |

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.