Hello Nintex Community!
Hopefully someone can help me out with this:
- Downloaded SPServices from http://spservices.codeplex.com/
- Modified the jquery.SPServices-2014.02.min.js (Changed "(jQuery)" to "(NWF$)")
- Uploaded the modified jquery.SPServices-2014.02.min.js with the SP Designer to the "Style Library"
- Set the Client ID JavaScript variable name of the Text Field to myCity
- Added the path to the jquery.SPServices-2014.02.min.js in Custom JavaScript Includes
- Added the following Code to Custom JavaScript
NWF$(document).ready(function() {
var itemSource = [];
var i = 0;
NWF$().SPServices({
operation: "GetListItems",
async: false,
listName: "myCityList",
CAMLViewFields: '<ViewFields><FieldRef/></ViewFields>',
CAMLQuery: '<Query><OrderBy><FieldRef Name='City' Ascending='True' /></OrderBy></Query>',
completefunc: function(xData, Status) {
NWF$(xData.responseXML).find(")nodeName= z:row]").each(function() {
itemSource = NWF$(this).attr('ows_City');
i = i + 1;
});
}
});
NWF$("#" + myCity).autocomplete({
source: itemSource
});
});
The internal Field Name of the column City is City.
What am I missing?
Thanks in advance & kind regards,
Milan