Home > DeveloperSection > Forums > get the value of checked radio button in Sencha Touch.
Aaron Douglas
Aaron Douglas

Total Post:20

Points:140
Posted on    June-14-2013 7:13 AM

 Sencha Touch Sencha Touch 
Ratings:


 1 Reply(s)
 3512  View(s)
Rate this:
Hi Expert,

How to get the value of checked radio button in Sencha Touch.

Thanks in advance for any recommendations or solutions.


Sumit Kesarwani

Total Post:378

Points:2694
Posted on    June-25-2013 12:45 AM

Hi Aaron,

To get the value of checked radio button in sencha touch, first add a groupValue to the radio button and then get the group value through the getGroupValue() method, like this:

        var centre = Ext.ComponentQuery.query('radiofield[name=Centre]');

        Ext.Msg.alert('Selected Centre', centre[0].getGroupValue());


If you want to learn more about radio button, then you can read my article:

http://www.mindstick.com/Articles/56bc0549-243a-40f9-83d4-63161fe68e38/?Radio%20Button%20in%20Sencha%20Touch


Don't want to miss updates? Please click the below button!

Follow MindStick