How do i get value of ion-radio button from accordion view with ng-repeat


#1

Here these questions are from an array, option for which are always same. Need to bind all the questions to separate model in order to get the selected option from each question.


#2

Good morning Amisha777,

Can you show an overview of your code? which version of ionic you are using?
because it’s so difficult to help you starting from scratch.

Guessing you’re using v1, you can start with this link and get back to us if you still have problems:
https://ionicframework.com/docs/v1/components/#radio-buttons

Hope it will help!


#3

for me, the process is quite simple.

you will need some many variables (in your controller) as you have buttons, in order to have the answer of each question in its variable.

try it and get us back for more explanations.