Dropdown list

Hello,

I have 2 dropdown fields in a form
a ) company (in its own table)
and
b) contact person. (in its own table, where contact persons are recognized using company ID)

Now what i want to do is when a company is selected ie. in field a) , i want only the contact persons under the company selected to appear in the field b) dropdown.

In the field b), i have edition lookup sql statement as:
SELECT ID, contacts
FROM contacts
ORDER BY contacts

I dont know if i could explain it well but hope its understandable.
any help?

Thanks!

Re: Dropdown list

Tried to fidn on the manual or knowledge base?

http://www.scriptcase.net/phpgenerator/baseknowledge/baseknowledge.php?id_topico=58

Re: Dropdown list

Hi!
First of all thanks for pointing me to the document. Was exactly what i needed.
and yes i tried to search for the answer but didn’t find except the one in the samples, and i tried it but didn’t work but now got it working.

Thanks.