Sunday, July 26, 2015

How to Show Status Message in SharePoint 2013

Requirement: After the launch of new SharePoint intranet portal, we wanted to display a status message in each page.

Solution: Here is the script to display status message using SharePoint Javascript client side object model.

<script type="text/javascript">
ExecuteOrDelayUntilScriptLoaded(AddStatusMessage, "sp.js");

function AddStatusMessage()
var statusID = SP.UI.Status.addStatus("Welcome","Welcome to New Crescent Portal. Feel free to contact <a href=''>Helpdesk </a> if you have any queries");

SP.UI.Status.setStatusPriColor(statusID, 'green');

and the result of SharePoint 2013 status message:
sharepoint 2010 status message
This script can be used in Master pages or in Script editor web parts.

You might also like:
SharePoint Usage Reports
Usage reports, collaboration and audit for SharePoint.
Document SharePoint Farm
Automatically generate SharePoint documentation.

Check out these SharePoint products:

No comments :

Post a Comment

Please Login and comment to get your questions answered!

You might also like:

Related Posts Plugin for WordPress, Blogger...