I'm working on this app that shows a dynamic questionnaire with normal text or multiple choice answers. Questions and possible multi-choice answers are stored on SP lists, and I also want to save users "responses". The questions are the first level gallery and the multiple choice answers are the 2nd level gallery. The text input and the multiple choice gallery will be on top of each other and visibility controled by the "type" of question (column of the questions list, can be text or multiple).
My test screen is mostly working, but my problem is that when I select one choice I want to uncheck the other choices (only one possible answer can be checked) if they are on, but only for that question.
I'm setting variables with the questions and the answer with the oncheck and uncheck and using these on the default property but what to do when it's not the current question?
default=If(IsBlank(ThisItem.response),If(ThisItem.question_ID=currentSelectedQuestion,If(ThisItem.Multiple_option=currentSelectedAnswer, true , false ), ?????? ),If(ThisItem.response=ThisItem.Multiple_option, true , false ))
The Gallery_Question is populated with:
AddColumns(mqc_questions, "response", LookUp(test_Collection, And(client_no = Label_Client_No.Text, question = Title)).response)
and the Gallery_Answers: AddColumns(Filter(mqc_answers,question_ID=ThisItem.Title),"response",LookUp(test_Collection,And(client_no=Label_Client_No.Text,question=question_ID)).response)

I did tried a version where I patched the responses at the Oncheck and Uncheck events but that seems to loose the current position as the gallery is refreshed, and the user has to click twice to enter the next answer.
All advice is appreciated,
Thanks
Werner