Posts

Showing posts from May, 2016

Add attachment filed column in SharePoint custom list forms through SharePoint designer 2013

Image
Open the Custom Form (either it is edit or new item) in the SharePoint Designer 2010/2013. Identify the place and paste the following code in SPD.  <tr>      <td rowspan="2" width="190px" valign="top" height="50px">         <H3>            Upload Evidence         </H3>      </td>      <td valign="bottom" height="15" id="attachmentsOnClient">         <span dir="ltr">            <input type="file" name="fileupload0" id="onetidIOFile" size="56" title="Name" />         </span>      </td>   </tr>   <tr>   <td colspan="4">      <input id="attachOKbutton" type="BUTTON" onclick='OkAttach()' value="Upload" style="width: 12.8em; height: 2em"/>     ...

Get all column values based on a distinct column value from SharePoint list through rest api and json filters

<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script> <script type="text/javascript"> $( document ).ready(function() { CreateNew(); }); function CreateNew() {     var listName = "UserProfile";         $.ajax({         url:_spPageContextInfo.siteAbsoluteUrl + "/_api/web/lists/getbytitle('" + listName + "')/items?$select=Location,UserTitle,PageAccessed",         type: "GET",         headers: {             "accept": "application/json;odata=verbose",         },         success: function (data) {             //alert(JSON.stringify(data.d.results));             var lookup = {}; var items = data.d.results; //var result = []; var divhtml='<ul>'; for (var item, i ...