I Have a Canvas App with the screen shown as an attachment.
Currently, user submits his/her response for the selected Question Number from the dropdown and the description of the question underneath changes based on the selected Question Number. The response input gets submitted to a SPO list titled "Responses" against the selected question No.
There are total of Ten (10) Questions.
I have attached the screen shots of my screen and the Submit button code.
ISSUES:
The goal is to automate the process.
Any suggestion is appreciated.
Thank you,
SueA.
Hi @SueA ,
First of all, I think users will select a Bill from a Gallery. So, you can create a variable to save or initialize the question No. depending on the latest question No. If there is no question No. for that Bill, give it the original No: 1. Then on submit, you can use the UpdateContext function to add 1 for the variable, and the Text property of Question No Label should set to this variable.
Gallery OnSelect:
Navigate(QusetionScreen, ScreenTransition.None, {varQuestionNo: If(IsBlank(LookUp(Responses, BillsID = galTitlesHome.Selected.ID && ReviewerID = varReviewerID.ID, QuestionNo)),1,LookUp(Responses, BillsID = galTitlesHome.Selected.ID && ReviewerID = varReviewerID.ID, QuestionNo)+1)})
OnSelect of submit button:
UpdateContext({varQuestionNo:varQuestionNo+1});If(varQuestionNo >10, YourOriginalCodes;Navigate(CompletedScreen), YourOriginalCodes)
Best regards,
mmbr1606
41
Super User 2025 Season 1
WarrenBelz
37
Most Valuable Professional
MS.Ragavendar
34