We have 2 buttons to decide on yes or no. Here, we have json:
{
"data":{"myquestionlist":
[{"myid":11,"myQuestionId"111,"myselection":[1,0]},
{"myid":12,"myQuestionId":222,"myselection":[0,1]}]
}
}
Here, we have another parameter which will decide yes/no. If random selection is first value(from "myselection":[1,0] i.e:1) then the parameter should send "Yes". If my random selection is second value(from "myselection":[1,0] i.e: 0) then parameter will send "No".
How can I achieve this?
Aucun commentaire:
Enregistrer un commentaire