Greetings fellow SharePoint developer! Today, I will show you how to remove that horrible “save” button from the out of the box surveys that ships with SharePoint 2007!

You will notice the save button in sharepoint surveys when using sharepoint surveys with branching options.

It confuse most of surveys users as generally user select save instead of next or finish which result in in complete surveys.

I have checked a lot in sharepoint options and failed to find any option thay may allow admisitrator or pulisher to disable this buton and find that there is one work around using sharepoint designer for removing it. 

  1. Open site in sharepoint designer
  2. Go to you subsite and expand pages under survey (created earlier with branching option)
  3. Open newform.aspx and find following
  4. Add following javascript before closing tag of the content place holder searched in last step

<script type=”text/javascript”>

_spBodyOnLoadFunctionNames.push(“setValue”);

function setValue() {
hideButton(“Save”);
}

//This function hides a button on the page
function hideButton(valueDef)
{
var frm = document.forms[0];
for (i=0;i< frm.elements.length;i++)
{
if (frm.elements[i].type == “button” && frm.elements[i].value == valueDef)
{
frm.elements[i].style.display = “none”;
}
}}
</script>

Above script will search for save button and toggle its visibility. If you need to remove save button while editing existing responses you will have to repeat above steps for editform.aspx