Home › Forums › Autocomplete › AutoComplete
Tagged: sp2013
- This topic has 3 replies, 2 voices, and was last updated 10 years ago by Alexander Bautz.
-
AuthorPosts
-
-
November 13, 2014 at 14:39 #6605
2013 list.
Basically I have list1 where I have all the numbers I want to retrieve from to populate the List 2.List 1 : Column name “Title”
Field Type: The Single line of textList2: Column name: Numbers
Field Type: Single Line of textHere is my script.
<script type=”text/javascript” src=”/sites/spservices/SiteAssets/scripts/jquery-1.11.1.min.js” language=”javascript”></script><script type=”text/javascript” src=”/sites/spservices/SiteAssets/scripts/spjs-utility.js” language=”javascript”></script><script type=”text/javascript” src=”/sites/spservices/SiteAssets/scripts/spjs_autocomplete_min.js” language=”javascript”></script><script type=”text/javascript” language=”javascript”>
alert(“Hello, world”)
alert(spjs.utility.version);var fields = init_fields_v2();
spjs.ac.textField({
“applyTo”:”Title”,
“helpText”:”Please Enter Rc Number…”,
“listGuid”:”4D376B3D-85AB-4660-9EF0-8D7019D991A2″,
“listBaseUrl”:”/services”,
“showField”:”Number”,
“rowLimit”:15,
“listOptionsOnFocus”:false,
“reValidateOnLoad”:false,
“setFields”:[]
});Attachments:
-
November 14, 2014 at 19:27 #6613
Your setup looks OK. Can you try using another single line of text field than the Title field?
If you are using SP 2013 you might have to delay the function call by wrapping it like this:
setTimeout(function(){ // add function call here },500);
Alexander
-
November 14, 2014 at 21:50 #6616
Created other single line of text other than title called My_Numbers and wrapped the function call inside the setTimeout function:
var fields = init_fields_v2();
setTimeout(function(){
spjs.ac.textField({
“applyTo”:”My_Numbers”,
“helpText”:”Please Enter Rc Number…”,
“listGuid”:”4D376B3D-85AB-4660-9EF0-8D7019D991A2″,
“listBaseUrl”:”/spservices”,
“showField”:”RC_Number”,
“rowLimit”:15,
“listOptionsOnFocus”:true,
“reValidateOnLoad”:false,
“setFields”:[]
});
},900);Still getting same error, i can see the box is delayed a little bit but issue still exists. and yes i am using sp2013 .
- This reply was modified 10 years ago by Navin Pokhrel.
-
November 22, 2014 at 09:14 #6650
Sorry for the delay – still the same error means that it complain about the “Title” field still? – or is it now complaining about the new field?
Alexander
-
-
AuthorPosts
- You must be logged in to reply to this topic.