Possible to display more than one fields in the auto complete text box?

erichon 28 Jun, 2019
Hi,

The Auto Completer Drop Down can be implemented successfully, it is wonderful.

This form is used for search customer name, however, customers can have the same name,
wonder if it is possible to display the customer name together with his telephone number in
the auto completer drop down text box too, so that I can pick the right customer?

Thanks a lot for your help in advance.

Regards,
Eric
healyhatman 29 Jun, 2019
You sure can. Instead of just returning the id and the name, you can return
id:model.id
CONCAT(model.field1 , " - " , model.field2):model.alias
Make sure you have the spaces around the commas
This topic is locked and no more replies can be posted.

VPS & Email Hosting 20% discount
hostinger