Hiding 'Export results' Button on SharePoint Surveys
One of the nice features of SharePoint surveys is the ability to 'Export results to a spreadsheet'. This button is just to the right of 'Respond to survey'. It takes all of your survey results, per user, and dumps it to a spreadsheet. In cases where you chose to not show participant names, the names are starred out in the download. But what if you don't want users to have access to this data? How can you disable or hide the 'Export' functionality and not affect survey participation?
Add the following javascript snippet to the survey page (using FrontPage). This causes the 'Export results to spreadsheet' button to not appear...
<script language=javascript>
theExport = diidIOExportToSpreadsheet[0];
while (theExport.tagName != 'TABLE')
theExport= theExport.parentNode;
theExport=theExport.parentNode;
theExport.style.display='none';
theExport.nextSibling.style.display='none';
</script>