I have successfully implemented the necessary steps to retrieve the chosen value from my radio button form.
....
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 have employed various methods such as:
Ext.getCmp('filter_form').getForm().getValues()['timespan']
However, upon executing this in the console, instead of obtaining the selected button's value, I receive the term on
. What is causing this issue? I have experimented with different combinations of getValues, getForm, and so on, yet I always end up with on
, true
, or false
. Can anyone explain what might be happening here?