I followed the basic procedures for getting the selected form value of my switch.
.... xtype: 'radiofield', name: 'timespan', id: 'timespan', value: 7, checked: true, fieldLabel: 'Time Span', boxLabel: '7 days' }, { xtype: 'radiofield', name: 'timespan', value: '30', fieldLabel: '', labelSeparator: '', hideEmptyLabel: false, boxLabel: '30 days' }, { xtype: 'radiofield', name: 'timespan', value: '60', fieldLabel: '', labelSeparator: '', hideEmptyLabel: false, boxLabel: '60 days' }, { xtype: 'radiofield', name: 'timespan', value: 'all', fieldLabel: '', labelSeparator: '', hideEmptyLabel: false, boxLabel: 'All' ....
I used methods like:
Ext.getCmp('filter_form').getForm().getValues()['timespan']
But when I run this on the console, instead of getting the value of the selected button, I get the word on . What gives?! I tried several different combos getValues, getForm, etc., but I always get on or true or false . What's going on here?