cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Autocomplete in nintexform

Jump to solution

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

Labels: (3)
Tags (1)
0 Kudos
Reply
10 Replies
Workflow Hero

Re: Autocomplete in nintexform

Jump 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

Reply
Not applicable

Re: Autocomplete in nintexform

Jump to solution

I am just trying to use SP Services in Nintex Form.

0 Kudos
Reply
Workflow Hero

Re: Autocomplete in nintexform

Jump to solution

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:

Reply
Workflow Hero

Re: Autocomplete in nintexform

Jump to solution

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.

Reply
Not applicable

Re: Autocomplete in nintexform

Jump to solution

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..

screenshoot.png

Thanks.

Reply
Workflow Hero

Re: Autocomplete in nintexform

Jump to solution

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

0 Kudos
Reply
Not applicable

Re: Autocomplete in nintexform

Jump to solution

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 .

Reply
Workflow Hero

Re: Autocomplete in nintexform

Jump to solution

Thanks Gokulnath,

I was also able to achieve the functionality but updated that in another forum

0 Kudos
Reply
Workflow Hero

Re: Autocomplete in nintexform

Jump to solution

very nice!

0 Kudos
Reply