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!!!
This comment has been removed by the author.
ReplyDelete