General developer forum

Autocomplete load data with AMD

 
Picture of Lukas Celinak
Autocomplete load data with AMD
 

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.





 
Average of ratings: -
Picture of Paul Holden
Re: Autocomplete load data with AMD
Core developersParticularly helpful MoodlersPlugin developers

Depends what version of Moodle you are developing for:

 
Average of ratings: -
Picture of Lukas Celinak
Re: Autocomplete load data with AMD
 

Thank you very much.

 
Average of ratings: -