Heya,
I've managed to implement custom drop downs but I just got one issue left to solve.
If I choose one of the drop down values but misses another required field, the form forgets the selected value that I chose.
The code looks correct to me but still it doesn't work.
Anyone know what the problem is?
Here's my code in osticket/include/client/open.inc.php:
<tr>
<td><b>Säljkanal:</b></td>
<td>
<select name="saljkanal">
<option value=0 selected>Välj säljkanal</option>
<?
$saljkanal= db_query('SELECT id,saljkanal FROM '.TABLE_PREFIX.'saljkanaler ORDER BY saljkanal');
while (list($id,$name) = db_fetch_row($saljkanal)){
$ck=($info==$id)?'selected':'';
?>
<option value="<?=$id?>"<?=$ck?>><?=$name?></option>
<?
}?>
</select>
<font class="error">* <?=$errors?></font>
</td>
</tr>
Thanks in advance!