Thursday, June 13, 2013

Rename button Text in NewForm.aspx or EditForm.aspx

Rename button Text in NewForm.aspx or EditForm.aspx in SharePoint  Lists
<script type="text/javascript">

function changeFinish()
{
var inputs = document.getElementsByTagName("input");
for(i = 0; i<inputs.length; i++)
{
if(inputs[i].type == "button" && inputs[i].value == "Save")
inputs[i].value = "Submit";
}
}


_spBodyOnLoadFunctionNames.push("changeFinish");

</script>

1 comment: