I'm building a simple questionnaire. The questions are populated from a SharePoint list.
I make the following collection which I want to use to collect the responses and eventually patch to a different SharePoint list that stores completed questionnaires.
ClearCollect(
colQuestionnaire,
AddColumns(
ShowColumns(
'SharePointQuestions',
"QuestionNumber",
"QuestionText"
),
"Answer",
false
)
)
colQuestionnaire is used in my gallery items
I've used a flexible height gallery contains a label for the question text and a toggle button.
I thought I could use the following formula in the OnCheck/OnUncheck
Patch(colQuestionnaire,ThisItem,{'Answer': true }) // OnCheck
Patch(colQuestionnaire,ThisItem,{'Answer': false}) // OnUncheck
The problem I'm getting is I need to click twice in order to get the radio to change.
I'd be grateful for help getting this working.