Autocomplete load data with AMD

Autocomplete load data with AMD

by Lukas Celinak -
Number of replies: 2
Picture of Plugin developers

Hi,

i want to use autocomplete for selecting users in my plugin,

i have implemented amd module from enrol_manual, selecting users is working fine, but i have problem with loading vaules to autocomplete.

After reload form or load form with stored data, autocomplete will load only labels with userid stored in database, i need to repair this bug, because i want see full user identity in autocomplete selected items, but i dont know how to do this.

I tried change the values of selected items labels, but it is not working for me.

Please help.



Attachment loaded.PNG
Attachment selected.PNG
Average of ratings: -
In reply to Lukas Celinak

Re: Autocomplete load data with AMD

by Paul Holden -
Picture of Core developers Picture of Moodle HQ Picture of Moodle Workplace team Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers Picture of Testers

Depends what version of Moodle you are developing for: