cancel
Showing results for 
Search instead for 
Did you mean: 

How can I achieve quiz application

0 Kudos

Hi,

My requirement is to develop quiz app so that I need to bind json data in the radio button group. Then by clicking on next button I need to show the second questions and options in the form of radio button. How can I achieve this ?

Thanks,

Rahul

Accepted Solutions (0)

Answers (1)

Answers (1)

prashanth01
Participant

Hi Rahul,

First you bind the questions and Options using ElementBinding

LIke this way:

var sf = this.getView().byId("idSF"); sf.bindElement("/questions/0");

then you have bind in View controls .

OnNextbutton press you have to get that view getPath() and Increase the object number of that View I show in above ["/questions/(0 this is the object number)"] its automatically change the Question.All the best ...