Auto complete text box in nintex forms sharepoint 2013

  • 26 June 2017
  • 6 replies
  • 34 views

Badge +5

Hello,

How to achieve auto complete for text box in nintex fomrs using javascript or jquery.

I have one list, in list their is on column called "Title". Title column contains items in list. on the form i want auto complete based on alphabetics .

 ex: if type A letter below i want all the names with started with "A" letter.

How to achieve this.

Thanks in advance.

Regards,

Santhosh


6 replies

Userlevel 6
Badge +16

It is not a current Nintex feature, anyway I remember that sometime ago I used this >>> https://jqueryui.com/autocomplete/ 

Userlevel 5
Badge +14

have a look on this https://community.nintex.com/message/52309-re-autocomplete-in-a-repeating-section?commentID=52309#comment-52309 

Badge +5

Hi Marian,

Thank you for response.

I have gone through the above you mentioned link, and I have added some code.

below is my code for AutoComplete. Here I am querying the within the list only. But I am not getting the result.

could you please check the code, give me ideas, where did i go wrong in code.

Any help would be very appreciated.

<script src=".....SiteAssets/jquery.SPServices-2014.02.min.js"></script>
<script src=".....SiteAssets/jquery-1.7.1.js"></script>
<script src="......SiteAssets/sputility.min.js"></script>
<script>
NWF$(document).ready(function() {
var externalParties = [];
NWF$().SPServices({
operation: "GetListItems",
async: false,
listName: "Test1",
CAMLViewFields: "<ViewFields><FieldRef Name='Title' /></ViewFields>", 
completefunc: function (xData, Status) {
NWF$(xData.responseXML).SPFilterNode("z:row").each(function() {
externalParties.push(NWF$(this).attr("ows_Title"));
});
}
});
NWF$("#" + testinput).autocomplete({
source: externalParties
});
});

</script>

Thanks,

Santhosh.

Userlevel 5
Badge +14

I'm not sure, don't you get any results from list query?

or you do get results from list query but they are not shown as autocomplete options?

do you get any errors on developer console?

Badge +5

Hi Marian,

It's working fine now. before i didn't give correct path for script files. now I have changed script path files. it's working fine.

Thanks for your support.

Regards,

Santhosh.

Badge +2

Hello,

I'm also trying the same steps but auto-complete is not working. When I start typing in a text field, I'm not getting anys uggestion .

 

Below is my script, and the include file. I have also change the (jQuery) to (NWF$) in the jquery.SPServices.min.js file.

 

Please guide me what else I'm missing?

 

3122i262D09CC24DDE370.png

 

3123iAF48B016EDF9907D.png

Reply