examples/form/combocheck.js
authorAlan Knowles <alan@akbkhome.com>
Fri, 2 Sep 2011 05:02:24 +0000 (13:02 +0800)
committerAlan Knowles <alan@akbkhome.com>
Fri, 2 Sep 2011 05:02:24 +0000 (13:02 +0800)
examples/form/combocheck.js

index 27674ad..8c38ca0 100644 (file)
@@ -26,6 +26,8 @@ Roo.onReady(function(){
                 name : 'states_list',
                 fieldLabel: 'State',
                 hiddenName:'states',
+                valueField : 'abbr',
+                displayField:'state',
                 store: {
                     xns : Roo.data,
                     xtype : 'SimpleStore',
@@ -33,7 +35,7 @@ Roo.onReady(function(){
                     data : Roo.exampledata.states // from states.js
                    
                 },
-                displayField:'state',
+                
                 typeAhead: true,
                 mode: 'local',
                 triggerAction: 'all',