0

Can anybody tell me how to get the selected input Label value from a radio group in extjs? I have placed radio group in a form. I need to get the selected input Label value in controller in onChangemethod

onChangeAspectsradio: function (radioField, newVal, oldVal, eOpts){         
      console.log("new value is"+newVal); //here am getting object only             
},

Thanks

Illidanek
  • 996
  • 1
  • 18
  • 32
mohan
  • 13,035
  • 29
  • 108
  • 178

2 Answers2

1

try newVal.individual.

onChangeAspectsradio: function (radioField, newVal, oldVal, eOpts){
      console.log("new value is"+newVal.individual); 
},
Raza Ahmed
  • 2,661
  • 2
  • 35
  • 46
0
Ext.ComponentQuery.query('[name=test]')[0].getGroupValue();

{
    xtype          : 'radiofield',
    name           : 'test',
    inputValue     : '30',
    hideEmptyLabel : false,
    boxLabel       : 'testBox'
}

try this, should help. Remember setting inputValue property of radio

Nail Shakirov
  • 654
  • 1
  • 8
  • 17