Page 1 of 1

SPServices.Autocomplete not working on Forms created with Forms Designer

Posted: 06 Mar 2019
by Douglenator83
Hello,

i hope someone can help me. I try to use the Jquery library SPServices.Autocomplete but i get this error message:

Uncaught TypeError: Cannot read property 'find' of undefined
at Function.ao.fn.SPServices.SPAutocomplete (eval at <anonymous> (plumsail.fd.jquery.js?rev=uWqMkVfr%2B6VHuu0VYpVNCg%3D%3D:2), <anonymous>:19:63536)


My code looks like this:

$.getScript("/websites/DoppWarrenty/SiteAssets/jquery-3.1.1.min.js")
.then(function() { return $.getScript("/websites/DoppWarrenty/SiteAssets/jquery.SPServices.min.js") })
.then(function(data) {
var $ = window.$;
$().SPServices.SPAutocomplete({
sourceList: "Ersatzteilkatalog", // Source List Name
sourceColumn: "Title", // Source List Column from where you want to fetch it.
columnName: "Kunden-Antrags-Nr", // Destination List Column where you wan to add it.
ignoreCase: true,
numChars: 2,
slideDownSpeed: 'fast',
filterType: "Contains"
});
});


Has someone a solution for this problem?

Re: SPServices.Autocomplete not working on Forms created with Forms Designer

Posted: 09 Mar 2019
by AlexZver
Hi!

SPAutocomplete won't work as it is designed for the default forms and not for the Forms Designer API.

If you want to fetch data, please try to use JSOM or REST API.

Re: SPServices.Autocomplete not working on Forms created with Forms Designer

Posted: 23 Mar 2019
by Douglenator83
Hi AlexZver,

can u give me a link or example to get a similar functionality without using jqueryui autocomplete?

Thanks in advance!