Multiple fields with autocomplete

QuestionsMultiple fields with autocomplete
Thales Pereira asked 12 years ago

Hi,

On the example given by the original content, i can see how i can do it for only one column.

But how can i perform a autocomplete feature on multiple fields?

Regards.

2 Answers
Abu Ghufran answered 12 years ago

Hello,

Just apply these settings with columns where you want autocomplete.

$col["formatter"] = "autocomplete"; // autocomplete
$col["formatoptions"] = array( "sql"=>"SELECT client_id, name FROM clients",
"search_on"=>"name",
"update_field" => "client_id"); // make sure this ID column exist with each autocomplete.

Let me know in case of further issue.

Thales Pereira answered 12 years ago

Hi.

Its working 🙂

Your Answer

16 + 20 =

Login with your Social Id:

OR, enter

Attach code here and paste link in question.
Attach screenshot here and paste link in question.



How useful was this discussion?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate it.

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?