Dropdown list

QuestionsDropdown list
germanmary asked 9 years ago

Hi abu sir,

i have trouble in creating the dropdown list wit more than one value

for example
i would like to show the

Code and the name of the customer
c001 german

based on this

the code alone has to be displayed in the other text box

like the same i have to display the value from 3 dropdowns in the same text box

C001PS like this

please help me to do this

this help will be very very useful for me

Thank you

1 Answers
Abu Ghufran answered 9 years ago

Hello,

You can set value as concat function for v alias in sql.

e.g.

(client_id, ' – ', name)

$str = $g->get_dropdown_values("select distinct client_id as k, concat(client_id, ' – ', name) as v from clients");
$col["editoptions"] = array("value"=>":;".$str);

Your Answer

20 + 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?