SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is there a way to override Ribbon Save Button functionality in publishing page of specific page layout? My intention is not to override it for all publishing pages but to limit it to specific page layout?

share|improve this question

please create a javascript function PreSaveAction() in your page layout. In presave action will fire when you click on save button. You can write any javascript code in this function which needs to be perform just before saving the page.

This is working fine in sharepoint list, but I have not tried in publishing page

share|improve this answer

You could a create a new control deriving from the original, and add it to a custom masterpage.

I don't know if it's wise to do this in a page layout because the ribbon is on the masterpage. jQuery would be a solution here, you could just add a script in a head content placeholder on your pagelayout to enable it there only.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.