To hide the “Save and Close” button:
- Go to your designer
- On the left side click on “All Files”
- Go to lists –> Select your survey-> And click on it.
- You will have the following pages (we only need to update two)
- Right Click on NewForm.aspx->Open With->Sharepoint Designer(Open as text)
- Find the following line (section) : <asp:Content ContentPlaceHolderId="PlaceHolderMain" runat="server">
- Copy this code below:
<script src="http://code.jquery.com/jquery-1.10.2.min.js"></script>
<script>
$(document).ready(function () {
$(":input").each(function () {
var _sInputValue = $(this).val();
if (_sInputValue==="Save and Close") $(this).hide();
});
});
</script>
- Go to you NewForm.aspx on the designer, right click and “Check Out” and then “Check In”
- Do the same with EditForm.aspx