Sep 19, 2009

How to Customize the invitation message while adding the users to the group using Javascript

Objective is to customize the invitation message while adding user to sharepoint site.Though custmozing sharepoint pages are not recommended by Microsoft,but this is one way of customizing.

Open the AclInv.aspx page from the /layouts folder.

Add this script in the page...

<script>

function CustomMessage()

{

var txtBox = document.getElementById('ctl00_PlaceHolderMain_ifsSendEmail_txtEmailBody');

alert(txtBox);

txtBox.innerHTML = "Saurabh";

txtBox.readOnly = true;

}

_spBodyOnLoadFunctionNames.push("CustomMessage");

</script>



//

_spBodyOnLoadFunctionNames.push("CustomMessage");

This is the function called on load of the sharepoint page.



If there is some other way..then please keep posted

Happy Coding!!!

1 comment: