PDA

View Full Version : Combox not submiting the 'value' of the selected item - solved



vargadanis
16 Nov 2009, 3:44 AM
Hi,

In a normal situation a combobox looks like this:



<select name="comboName">
<option value="valueField">displayField</option>
</select>
I created a combobox entirely from JS and specified the displayField and the valueField config options. When submitting the form however, I get what's "written" in the combobox instead of the assigned value to that.
Any tips why and how to correct that?

Thanx

Condor
16 Nov 2009, 3:44 AM
Specify a hiddenName instead of a name in the combobox config.

vargadanis
16 Nov 2009, 3:50 AM
Thank you, that worked and thank you again for the quick reply :)