SPServices.Autocomplete not working on Forms created with Forms Designer

Discussions about Forms Designer for SharePoint 2013 / 2016 and Office 365.
Locked
Douglenator83
Posts: 5
Joined: Wed Mar 06, 2019

06 Mar 2019

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?

User avatar
AlexZver
Posts: 232
Joined: Mon Aug 27, 2018

09 Mar 2019

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.

Douglenator83
Posts: 5
Joined: Wed Mar 06, 2019

23 Mar 2019

Hi AlexZver,

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

Thanks in advance!

Locked
  • Information
  • Who is online

    Users browsing this forum: No registered users and 9 guests