How do you refresh the RadioButtonsGroup selection when returning to the screen with new data?
1

I have developed a simple flow that I'm using for a quiz activity. It has only 3 screens, QUESTION, QUESTION_RESULT, and SCORE. I am using my endpoint to send the question data and the result data for each question in a given quiz, so that it supports multiple quizzes with different numbers of questions. This is working really well; however, there is some odd behavior with the RadioButtonsGroup component where each subsequent question already has the index of the selected response from the previous question selected. I've tried setting init-values to blank or to -1, I've tried adding the refresh_on_back: true to my screens, but no matter what I do, I'm still seeing this behavior. I would think that the selection would be cleared on each return to the screen, especially with the component getting a new value for data-source each time the screen is visited. Is there any way to do this that I'm not thinking of?

Khrystina
Asked about a month ago
Khrystina

Just clarifying; the issue here is that the user is able to proceed without selecting anything as it's already selected so it makes it less likely they will choose the correct response for the quiz.

October 3 at 11:45 AM
Bar

Khrystina - can you please share your Flow JSON, and a rough explanation of the user journey between the screens? I.e. if there are two questions does the journey look like QUESTION -> QUESTION_RESULT -> QUESTION -> QUESTION_RESULT -> SCORE?

October 4 at 6:45 AM