AutoComplete

Forums Autocomplete AutoComplete

Tagged: 

Viewing 3 reply threads
  • Author
    Posts
    • #6605
      Navin Pokhrel
      Participant

      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 text

      List2: Column name: Numbers
      Field Type: Single Line of text

      Here 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”:[]
      });

    • #6613
      Alexander Bautz
      Keymaster

      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

    • #6616
      Navin Pokhrel
      Participant

      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 5 years, 10 months ago by Navin Pokhrel.
    • #6650
      Alexander Bautz
      Keymaster

      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

Viewing 3 reply threads
  • You must be logged in to reply to this topic.