Skip to main content
6 votes
Accepted

What is the difference between "SP State Service Application" and "SP Session State Service"

In SharePoint the State Service Application is a shared service that is used by the internal office elements like Info Path forms , Workflow forms to store the temporary data in SQL Database. This ...
Esaki's user avatar
  • 1,262
5 votes

Document Library Title Field autocomplete

Now that you have it working, you have to bind it your title field. Your function would become something like: $(function() { $("input[title='Title']").autocomplete({ source: availableTags ...
Eric Alexander's user avatar
4 votes

Create multiple items in another list using PreSaveAction

Creating items in lists is actually an asynchronous process. When you commit your changes, the item is written, but there's no way to guarantee when the item will be written. I'm sure of this because ...
Marc D Anderson's user avatar
4 votes
Accepted

Download link for SP.Search.js

Based on tutorial , I think you don't need to have a copy from the above files because it will be uploaded inside SharePoint , So if you need the mentioned code at tutorial work, try to use the ...
Mohamed El-Qassas MVP's user avatar
4 votes
Accepted

How can I make SPService webUrl to query a root site from a subsite?

The documentation says the parameter is webURL, not webUrl. GetListItems: [webURL], listName, viewName, CAMLViewFields, CAMLQuery, CAMLRowLimit, CAMLQueryOptions Give that a try and see if it ...
Eric Alexander's user avatar
4 votes

resolving $ is not a function when using SP Services

Call to $.noConflict(true) completely removes variables $ and jQuery from global scope. That means you can use jQuery via j variable only inside your DisplayComments. From other functions there will ...
Sergei Sergeev's user avatar
4 votes
Accepted

Query the year from a date field in CAML Query

Your ending </Eq> tag is misplaced. It should be placed before the <Contains> tag. Also some of your escapings are incorrect. <Query> <Where> <And> &...
Robert Lindgren's user avatar
4 votes
Accepted

Error updating Multiline Text Field with html content

Use below: var value = SP.Utilities.HttpUtility.htmlEncode(html); $().SPServices({ operation: "UpdateListItems", async: false, batchCmd: "New", listName: "LIST", valuepairs: [["...
Deepmala's user avatar
  • 1,857
3 votes
Accepted

Loading multiple SP.SOD.executeFunc('sp.js', 'SP.ClientContext', functionname);

This code is the basic implementation of LoadSodByKey, this is the best implementation of the function as it has the override to allow you to have a callback for when the script is loaded. After ...
Hardik's user avatar
  • 7,743
3 votes
Accepted

lookup columns are displaying an "ID;#" how to remove them using jquery

You can use this to break out the string explicitly: var emails = $(this).attr("ows_UsersList").split(";#").filter(function(e){ return !parseInt(e)}) var emailsjoined = emails.join(";"); ...
Mike's user avatar
  • 12.2k
3 votes

How to retrieve all folders in a document library using java script or spservices

Make a GET request to the following URL, It will return all folders /_api/Web/GetFolderByServerRelativeUrl('" + libraryRelativeUrl + "')/Folders?$select=Name,ServerRelativeUrl Using jQuery function ...
Atish Kumar Dipongkor's user avatar
3 votes

CAML Query is not filtering anything when using a Person or Group type column

operation: "GetListItems", async: false, listName: "Marketing Requests", viewName: "54E61A50-B5A9-4D59-91B9-EA9D280B8C24", CAMLRowLimit: 5000, CAMLQuery: "<Query><Where><Eq><...
Erin L's user avatar
  • 4,038
3 votes

SPServices : Write data into a list with UpdateListItems

Looks like issue with the internal name, please confirm the column internal name. try with may be "name" columns internal name, this can be default "Title" valuepairs:[["Title",name], ["description",...
Anuja's user avatar
  • 3,103
3 votes
Accepted

An Issue with SPCascadeDropdowns

parentColumn and childColumn should be display names, not internal names: Country Name and Region Name
Erin L's user avatar
  • 4,038
3 votes
Accepted

getting Failed to load resource: the server responded with a status of 500 (Internal Server Error) while using SPServices()

Here is an example of accessing the all Recurrence Event from calendar List using the JavaScript: <script type="text/javascript"> $(document).ready(function () { debugger; $("....
Sarika Koli's user avatar
3 votes
Accepted

SPServices.SPCascadeDropdowns

You have made some spelling mistakes,like in your screen shot In SubDomains list display name for column SecondaryDomian In your script it shows SecondaryDomain, change column value use bwlow script ...
Akshay Dattatray Nangare's user avatar
3 votes
Accepted

SPServices not returning data - List access Error

First I would comment out the CAMLQuery line and execute the call to ensure it is functioning properly. I'm pretty sure this is where the problem is, it is malformed. After verifying that works, then ...
Eric Alexander's user avatar
3 votes

SPServices Add to list UpdateListItems

RESOLVED! Everytime I post here and try to push my luck for another code. I was able to make it work. hahaha Again to help my fellow newbies, here is the code I've used. Hope this helps. function ...
SP_Newbie's user avatar
3 votes

Removing duplicate values from cascading dropdown

Duplicates can also be removed when cascading is done like in below cascading code we can call a function to remove duplicate. $().SPServices.SPCascadeDropdowns({ relationshipWebURL: "", ...
KumarV's user avatar
  • 2,680
3 votes
Accepted

How to restore a previous document version via client-side API?

You can use the below sample code that uses the restoreByLabel method to restore the previous version of the document. <script language="javascript" type="text/javascript" src="//ajax.googleapis....
Priyaranjan KS's user avatar
3 votes

Does IIS reset is required after disabling SharePoint Services

Their is no such requirement like u have to reset IIS after stop the services. We are starting and stopping services all the time without IIS reset. You have to make sure that you are not stopping ...
Waqas Sarwar MVP's user avatar
3 votes

Does Web application service needs to be running on a server where central admin is hosted?

If your SharePoint architecture is for multi farm, then the webapplication service needs to run only on the web servers and your farm will be hosted on Application server. Suppose you have 3 servers. ...
Vainktesh Kumar's user avatar
3 votes

Hide specific column in list view based on user's membership

Format the fields using JSLink (function () { var ctx = {}; ctx.Templates = {}; ctx.Templates.Fields = { "Cost_x0020_Status": { "View": FieldTemplate }, }; }; SPClientTemplates....
Deepmala's user avatar
  • 1,857
3 votes
Accepted

Hide specific column in list view based on user's membership

For performance-related reasons, the SharePoint doesn't provide column-level security as OOTB. The available workarounds Use the below code to hide a specific column based on a specific group using ...
Mohamed El-Qassas MVP's user avatar
3 votes

perform custom validation on custom html form against sharepoint list

Yes. You can use SPServices inside of JSOM. SPServices works nice just about anywhere in your Custom JS. I have used it inside of REST calls and other JS services with SharePoint. Yes, you can use ...
lazoDev's user avatar
  • 1,806
3 votes

How to Read SP list into javascript - SPServices.SPGetListItemsJson returns key value pairs which do not belong to dataset

In SharePoint 2010, if you want to get list items, we can easily use REST API with jQuery Ajax to achieve it. Don't need use the SPService library. The following code for your reference. <script ...
LZ_MSFT's user avatar
  • 6,229
2 votes

How to get file or list item icon in SharePoint 2013 using javascript

You can use the script below : <script type="text/javascript"> function getFileTypeIcon(fName, size) { var dfd = $.Deferred(); $.ajax({ url: _spPageContextInfo.webAbsoluteUrl + ...
Oussama Saissi's user avatar
2 votes

Javascript GetListItems with space in column name

You can use list settings page to find the field internal name and use that in the query. Open list settings and click on the column hyperlink which takes you to the column settings page. Just look ...
Amal Hashim's user avatar
  • 28.3k
2 votes

GetListItems return undefined if query applied

I resolved this issue by function below: completefunc: function (xData, Status) { //alert(xData); // console.log(xData.responseText); var specialCharsDeleted = ...
susanoo's user avatar
  • 31
2 votes
Accepted

Fetch the document name from Document Library using Document ID

var context = SP.ClientContext.get_current(); var selectedItems = SP.ListOperation.Selection.getSelectedItems(context); var fileName = []; for (var i = 0; i < selectedItems.length; i++) { var ...
Gaurravs's user avatar
  • 3,558

Only top scored, non community-wiki answers of a minimum length are eligible