Tuesday, February 2, 2016

Redirecting the SharePoint site to another site

Add script editor web part and paste below script in edit snippet, replace google.com with destination site URL.

 <script type="text/javascript">  

 $(document).ready(function(){
 window.location.href = "https://www.google.com/";
 });
 </script>

Populate people picker field with logged in user in SharePoint using JS

Please use below code to populate people picker in SharePoint online, <script src="https://ajax.googleapis.com/ajax/libs/jquery/3....