Two of the config parms for the comboBox are displayField and valueField.

I figured these would allow me to emulate the following html drop down.
HTML Code:
<select name="country">
<option value="1">Afghanistan</option>
<option value="2">Albania</option>
<option value="3">Algeria</option>
<option value="4">American Samoa</option>
<option value="5">Andorra</option>
<option value="6">Angola</option>
<option value="7">Anguilla</option>
 ...
<option value="252">Zimbabwe</option>
</select>
For illustration purposes, data store looks like this:
PHP Code:
           var countryStore = new Ext.data.SimpleStore({
              
fields : ['county_id''country_name'],
              
data: [
                [
'1''Afghanistan'], ... ['252','Zimbabwe']           
            }); 
My form field is in a fieldset:
PHP Code:
            var clientDetailsFieldset = {
              
xtype'fieldset',
              
title'Client contact details',
              
buttonsformButtons,
              
items: [{
                
id'id_client_contact_ref',
                
fieldLabel'ClientContactID',
                
name'id_client_contact_ref',
                
disabledtrue
              
},{
                
xtype'combo',
                
storecountryStore
                
displayField'country_name',
                
valueField'country_id',
                
editablefalse,                                                 
                
mode'local'
                
forceSelectiontrue,                
                
emptyText'Select a title...',                                                              
                
fieldLabel'Country',
                
name'country_id',
                
allowBlankfalse 
             
}]
           }; 
When the form is submitted, the server side script (PHP) is seeing the country name in $_POST['country_id'] (ie the displayField and not the valueField).

Am I doing something wrong, or is this working as intended?

TIA,
Nick