Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Multiselect in include_form

Quote Reply
Multiselect in include_form
Hello,

I would like to create a multiselect field in the include_form. This will allow the dropdown menu information to be stored in the database. The following field has been added to the links table:

`Currency` enum('$','£','€','¥','NZD$','CAD$') default '$',

How do I create a multiselect field in the include_form that will input the data?

Upon doing a search, one answer points to a global while another points to a using "select".
Quote Reply
Re: [OP] Multiselect in include_form In reply to
You can do it both ways, select field manually.

Something like:

<select size="1" name="Currency">
<option selected value="Currency">Please select !</option>
<option value=" € ">Euro</option>
<option value=" $ ">USD</option>
</SELECT>

Or use a global to populate the field automatically:
http://www.gossamer-threads.com/...ng=mysubs.pm;#263393
[ Mysubs.pm ]

2 nd option is probably the best as you don’t have to maintain the select list, any changes you make to the currency column is automatically updated through the pm file.

Regards

minesite