Forum Discussion
SpServices.SpAutocomplete - problem with jquery
- DeletedSep 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.
Have you tried to ping Marc Anderson?
Thanks, i'll do that.
MarcDAnderson - do you have an ideea why the above code is not working in SPO?
Thanks in advance,
Catalin.
- Sep 09, 2016p.s. I haven't done any testing with jQuery 3.x. You might try 1.x. Also, SPServices 2014.02.
M.- DeletedSep 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.
- Sep 09, 2016Catalin:
There are many things changing in SharePoint Online all the time, and I haven't even tried to keep up. I don't see anything obvious about what you're doing that wouldn't work.
In any case, there are better autocomplete options, like jQueryUI's or Bootstrap's.
M.