-1

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;
    $('[id$=btnPageOk]').click();
});

Error:

enter image description here

Is there any solution for this?

0

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

Update the script via SharePoint designer instead.

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.