Hey bonkteam,
Yes, you can do it with select fields too. Just add the same "[]" chars to the name attribute like you did, then add two more attributes to your select:
That will expand the dropdown to 4 rows high and allow the user to select multiple items.
Alex - Good question! I'll give this a very, very tentative "yes".........
This is something I built into the code back with the earliest 2.0.0 beta, but I've never truly tested it out (!). Just add this line to your config.php file:
Yes, you can do it with select fields too. Just add the same "[]" chars to the name attribute like you did, then add two more attributes to your select:
Code:
<select ... multiple size="4">That will expand the dropdown to 4 rows high and allow the user to select multiple items.
Alex - Good question! I'll give this a very, very tentative "yes".........
This is something I built into the code back with the earliest 2.0.0 beta, but I've never truly tested it out (!). Just add this line to your config.php file:PHP Code:
<?php
$g_multi_val_delimiter = "\n";
This overrides the default ", " value for ALL fields. Here's what I wrote in the library.php file (where it's defined):
PHP Code:
<?php
/**
* This determines the value used in the database to separate multiple field values (checkboxes and
* multi-select boxes) and image filenames (main image, main thumb, search results thumb). It's strongly
* recommended that unless you have a programmatical reason, you should leave it to the default comma-space
* value.
* @global string $g_multi_val_delimiter
*/
$g_multi_val_delimiter = ", ";
