Hi,
I am trying to implement Autocomplete functionality in nintex form but its not working .Below the code i used
NWF$(document).ready(function() {
NWF$().SPServices.SPAutocomplete({
sourceList: "Title",
sourceColumn: "Dept",
columnName:"Department",
ignoreCase: true,
numChars: 1,
slideDownSpeed: 'fast'
});
});
Also i linked my sp services and jquery in advanced section.Till its not working
Title: sourceList name
Dept : source column name
Department: the column in which auto complete should be implemented.
Dept is in one list (Title list),Department is in another list
Thanks
Solved! Go to Solution.
Hello,
I don't see in your code where you are attempting to target/reference a specific control on the form for your code to act upon.
Thanks
I am just trying to use SP Services in Nintex Form.
Hello gokulnath palani​ – Have you modified your SP Services JavaScript file to use the (NWF$) variable as opposed to the default (jQuery)?
For some more detailed guidance on what you're trying to accomplish you might check these out:
I get that, and I've used it before successfully. But aren't you going to want to apply it to certain controls on the form? I don't see where you are referencing any controls to make autocomplete work on. The two links posted above are good resources.
Hi Patrick Abel , I tried all of the above but, it didn't work.
NWF$(document).ready(function() {
var externalParties = [];
NWF$().SPServices({
operation: "GetListItems",
async: false,
listName: "Title",
CAMLViewFields: "<ViewFields><FieldRef Name='PersonName' /></ViewFields>",
completefunc: function (xData, Status) {
NWF$(xData.responseXML).SPFilterNode("z:row").each(function() {
externalParties.push(NWF$(this).attr("ows_PersonName
});
}
});
NWF$("#" + Deptinput).autocomplete({
source: externalParties
});
});
i am also modified SP Services JavaScript file to use the (NWF$).
Title is the list name and PersonName is the column in that List.Deptinput is the javascript id in Department field..
Thanks.
Hi Gokulnath,
Are you able to resolve the issue?I guess the issue is with spservices.min.js its giving an error that "find" is not found
Hi Patrick Abel,
Finally i achieved the Auto Complete functionality in Nintex Forms .In above code there is a brackets mismatching.Here is the exact code
NWF$(document).ready(function() {
var externalParties = [];
NWF$().SPServices({
operation: "GetListItems",
async: false,
listName: "Title",
CAMLViewFields: "<ViewFields><FieldRef Name='PersonName' /></ViewFields>",
completefunc: function (xData, Status) {
NWF$(xData.responseXML).SPFilterNode("z:row").each(function() {
externalParties.push(NWF$(this).attr("ows_PersonName))
});
}
});
NWF$("#" + Deptinput).autocomplete({
source: externalParties
});
});
Thanks a lot .
Thanks Gokulnath,
I was also able to achieve the functionality but updated that in another forum
very nice!