Remove the Save and Close Button on SharePoint 2010 Survey

amarelv
amarelv used Ask the Experts™
on
I'd like to remove the "Save and Close" button from SharePoint 2010 Survey.  I need to surpress the "Save and Close" button as it confuses end users and we don't want any half completed surveys.  SaveandClose
Can someone please provide me with a nice simple soluton?

Thanks in advance for your help.
 
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®

Commented:
Here is a method you could model after from SharePoint 2007:

Remove the ‘Save’ button from a SharePoint surveyhttp://www.endusersharepoint.com/2009/02/24/remove-the-save-button-from-a-sharepoint-survey/
The following reference uses Content Editor Web Part with Javascript to hide the "SAVE" button. You can use the same approach to hide "Save and Close".

http://sharepointhz.blogspot.com/2009/05/hide-save-button-in-sharepoint-survey.html

Author

Commented:
Thank you so much for working with me on this issue.  Unfortunately, it did not work for me.  I added a content Edit Web Part with the coding to the NewForm.aspx and EditForm.aspx but I"m still able to see the "Save and Close" button on the page.   Please advise.

Author

Commented:
Thanks Zabiullah!  I greatly appreciated all of your help.
1./ Open site in SharePoint Designer.
2./ Open survey list newform.aspx page, in the code view, find this code “<asp:Content ContentPlaceHolderId="PlaceHolderMain"
3./ Scroll down to the closing tag </asp:Content>
4./ Enter Advanced Mode
5./ Ignore the warning
6./ Just to be on the safe side copy paste the WHOLE code into a blank text file
7./ Add this snippet BEFORE the </asp:Content> tag
<script>
var x=document.getElementsByTagName("input");
for (var i=0;i<x.length;i++)
{
  if (x.item(i).type=="button"&&x.item(i).value=="Save and Close")
  {x.item(i).style.display = "none"};
}
</script>
8./ Save and close
9./ Repeat the same steps for EditForm.aspx

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial