I'm making a questionnaire app that with every use a different set of questions comes up taken from a SP list. My gallery shows the first record of an already shuffled list but I don't know how to get the next record without the possibility of repeating the same questions. All I could fill up on my "Next Question" button is another shuffle but it usually repeats the same questions.
OnSelect of my "Start Exam" button (variables set to 1)
ClearCollect(colQuestions, Shuffle('Dynamic Questionnaire'));
Set(varQuestion, LastN(FirstN(colQuestions, TotalRecordCountForCurrentPage), NumberOfRowsPerPage));
Navigate(Questionnaire)OnSelect of "Next" button (Temp code because it doesn't give nonrepeating questions all throughout)
If(Slider1.Value=Value(ThisItem.Correct_Answer) || radChoice.Selected.Result=ThisItem.Correct_Answer || 'radYes/No'.Selected.Result=ThisItem.Correct_Answer ||
txtFillintheBlank.Text=ThisItem.Correct_Answer, Set(varcurrentScore, varcurrentScore+1),0);
ClearCollect(colQuestions, Shuffle('Dynamic Questionnaire'));
Set(varQuestion, LastN(FirstN(colQuestions, TotalRecordCountForCurrentPage),NumberOfRowsPerPage))Gallery Items is varQuestion
Any help is really appreciated. Thank you!

Report
All responses (
Answers (