Tag Info

Hot answers tagged

1

Try this jQuery().SPServices({ operation: "GetListItems", async: false, listName: listName, CAMLViewFields: "<ViewFields><FieldRef Name='Values'/></ViewFields>", completefunc: Function.createDelegate(this, callback) }); callback = function (xData, Status) { var values = new Array(); ...


1

I think you should try using the completefunc property of SPDisplayRelatedInfo parameters to pass a function which runs your cleanup code. This will allow it to run after the request has been completed and the extra table has been added to the page. The document.ready() event is similar to a _spBodyOnLoad function in SharePoint. Both waits for the main ...


1

Ah! I found a solution! http://jasonscript.wordpress.com/2013/08/07/javascript-and-working-with-the-sharepoint-2013-people-picker/ Here is my working code: var PickerTitle = "Assigned To"; var PickerDiv = $('[id$="ClientPeoplePicker"][title="' + PickerTitle + '"]'); var PickerEditor = PickerDiv.find('[title="' + PickerTitle + '"]'); var PickerInstance = ...


1

You can use a GUID or the display name for the listName parameter in SPServices. Make sure you use the curly brackets in the GUID. var lookupFieldInternalName = "LookupOne"; $().SPServices({ operation: "GetList", listName: "{C1AA0A1F-8177-4D64-AC3F-FDCFB31EFCA5}", completefunc: function(xData, Status) { console.log(xData.responseText); ...



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