PDA

View Full Version : combobox from markup is sending displayed value instead of key value



xherbie
21 Sep 2011, 9:51 AM
Hello

I'm made several comboboxes from markup with the transform config. But when sending the form the displayed value is sent instead of the key value. I can't figure out how to configure the combobox correctly:



<select name="Wert_Id2" size="4" multiple="multiple" id="Wert_Id2">
<option value="11317">Br....</option>
<option value="11311">FSued</option>
<option value="11315">GWest</option>
</select>
<script type='text/javascript'>
Ext.onReady(function(){
var Wert_Id2 = Ext.create('Ext.form.field.ComboBox', {
typeAhead: true,
transform: 'Wert_Id2',
width: 300,
multiSelect: true,
forceSelection: true
});
});
</script>


Thank you very much for your help

Best regards
Herbie

xherbie
21 Sep 2011, 11:27 PM
Found a similar post http://www.sencha.com/forum/showthread.php?137866-Combo-Transform-send-not-right-data. Seems to be a bug :-(

lucasguaru
22 Sep 2011, 10:19 AM
Did you try using the name for your combo?
I had the same problem and fixed ti but I'm not sure if that was the problem.

xherbie
22 Sep 2011, 8:51 PM
Do yo mean the 'name' config option?