Tags

,

I got request to remove the top buttons in the sharepoint survey to avoid user click next without scroll down the page. Below is the Javascript to do it.

var x=document.getElementsByTagName("input");
for (var i=0;i<x.length;i++)
  {
  if (x.item(i).type=="button"&&x.item(i).id.indexOf("top")>0)
     {
	if(x.item(i).value=="Save" || x.item(i).value=="Next" || x.item(i).value=="Cancel")
	{
		x.item(i).style.display = "none"
	}
     };
  }

Advertisements