Forum Discussion

Deleted's avatar
Deleted
Sep 08, 2016
Solved

SpServices.SpAutocomplete - problem with jquery

Hello,   Following this https://github.com/sympmarc/SPServices/wiki/SPAutocomplete I'm i'm trying to build an autocomplete field on SharePoint online(O365)   I have followed all instructions but ...
  • Deleted's avatar
    Deleted
    Sep 09, 2016

    Thanks Marc and Juan Carlos for your help.
     
    After a little bit of reasearch and some help I managed to get it done with jQueryUI and SPServices.
    I attached the script in a .docx file if anyone ever wants to use it.
    There are some things that need to be modified depending on the list, field names and fiels id's used - i marked all things with "ToModify_".
     
    The script needs to be loaded in a CEWP on newform.aspx and it does the following:
     - it reads the data from a list with two columns(it reads only the Title field) -  it populates the autocomplete Title field for the current list
     - when you SELECT the line that you want it then searches for the second field(populated with usernames) wich corresponds with the line selected and populates a people picker field and resolves the person.
     
    Hope this helps someone.
     
    Thanks.
    Catalin.

Resources