Posts

Showing posts with the label SharePoint Designer

Hiding fields on NewForm.aspx and EditForm.aspx

First open entry form (NewForm.aspx / EditForm.aspx / DispForm.aspx) in advanced mode in sharepoint designer. Then search for tag : <asp:Content ContentPlaceHolderId="PlaceHolderAdditionalPageHead" runat="server"> Now copy & paste this JavaScript code after this tag : <script type="text/ecmascript">  ExecuteOrDelayUntilScriptLoaded(runCode, "sp.js");  function runCode()  {   HideField("Expose to Customer / Partner",true);                 HideField("Reported By",true);                               HideField("Reported Date",true);  }  // Function To Hide Fields    function HideField(title,hide){      var header_h3=document.getElementsByTagName("h3") ;     ...

Set default value for People Picker via JavaScript

First open entry form (NewForm.aspx / EditForm.aspx / DispForm.aspx) in advanced mode in sharepoint designer. Then search for tag : <asp:Content ContentPlaceHolderId="PlaceHolderAdditionalPageHead" runat="server"> Now copy & paste this JavaScript code after this tag : <script type="text/ecmascript">  //Function search for people picker by its no and set default value string type  //If we have 2 people picker in entry form & we want to set value to 2nd no. then "pickerNo=2"  function fillPeoplePickerWithCurrentUser(pickerNo,userLoginName )    {       if(userLoginName != null)       {          var pp = getPickerImputElement(pickerNo);             if(pp != null)          {            pp.innerHTM...

Microsoft released 10 new SharePoint themes

Image
Microsoft released 10 new SharePoint themes you can download these theams from : Download them from Microsoft