Gossamer Forum
Home : Products : DBMan : Customization :

Dropdown Lists

Quote Reply
Dropdown Lists
I have a dropdown list I need in the search field. My problem is that there are commas in the descriptions
ie Chairman, CEO. So I want to do normal dropdown lists instead of the dynamic ones inthe .cfg file.

How do I do the coding in the html.pl file.

Thanks


Sean

Quote Reply
Re: Dropdown Lists In reply to
in db.cgi under sub build_select_field {
# --------------------------------------------------------
.....
@fields = split (/\,/, $db_select_fields{$column});

you can change out the comma after the YEN mark to a pipe | and then under default.cfg or whatever you call your config file you change out the regular commas for pipes | and then use a comma for your input

ie: New York,NY|Buffalo,NY .... and so on, I actually found this at the unoffical DB Man FAQ site.

Looks like if you do this for one config you have to convert then all your build_select_fields an or possibly copy and rename the sub, but I don't know if copying and renaming will work, it should but .... I'm sure the experts in here will know more about that.

good luck

Quote Reply
Re: Dropdown Lists In reply to
Thanks,
that worked great.

Sean

Quote Reply
Re: Dropdown Lists In reply to
Great that I could be of some help ...