Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building Power Apps
Answered

Concurrent User of Gallery

(0) ShareShare
ReportReport
Posted on by 39
HI, 
Looking for assistance with A Power APP used as an Audit tool. 
I have an App with multiple SharePoint Data sources, 1 is Questions and the Other is Answers. In the App I have a Gallery of Questions from List 1 "Questions" and for each question selected a response page appears where the user can submit an answer to List 2 "Answers". once a question has been answered for that User, I would like to shade the Gallery Item Question Green indicating the question has been answered, but I need this not to affect other users who may be accessing the App at different times of progress through the questions, i.e. they need their own session. All answers will be individual of course based on dropdowns for site, location, etc. How can I apply a reset Questionnaire button that resets the questionnaire for that user once they have finished and remove the green shading from the completed questions. i have not yet explored using a collection at this stage. Any suggestions and code would be greatly appreciated. Thank you.
  • Verified answer
    Nandit Profile Picture
    1,563 Super User 2025 Season 1 on at
    Concurrent User of Gallery
     
    For resetting the questionnaire, you can include a Reset button at the bottom of the screen with the following code:
    Set(varReset, true)
    OnVisible property of the screen:
    Set(varReset, false)
    Fill property of your Questions Gallery item would be:
    If(varReset, Color.White, 
        IsBlank(
            LookUp(
                Filter(
                    Answers,
                    User=User().Email && QuestionID = ThisItem.ID
                ).Answer
        ),
        Color.White,
        Color.Green
    )) 
    For this to work, you will need a QuestionID column in the Answers list and a column to capture user's email address. 
     
    Hope this helps. 
     
    Kind regards, 
    Nandit

    If this answers your query, please mark this response as the answer.
    If its helpful, please leave a like. Thanks!
     
  • Suggested answer
    DBO_DV Profile Picture
    4,530 Super User 2025 Season 1 on at
    Concurrent User of Gallery
    Hey, you have Several way show you could do it. 

    You will probably have the name of the user somewhere in the 2. list so you can track the answer back to a user. 
    Maybe you could also add some sort of staging to the second list. I mean by that a Column called status. 
    When the user starts answering the questions just add in this coluln the value "Started" or "In progress"  and when he finished and moves away from the screen patch it to "Finished"
     
    Then in the questions you could check if in list 2 there is an answer to this question that belongs to the current user and where the status is started then green else Black: 
    If(
        IsBlank(
            LookUp(
                Filter(
                    List2,
                    User=User().Email
                ),
                Status="Started"
            ).QuestionColumn
        ),
        Color.Black,
        Color.Green
    ) 
     
    If this answer solved your problem, please marke it as solution, so others can find it as well.
    If it helped you in any other way Consider liking it, so we can keep supporting each other. 
     
     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,587 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,928 Most Valuable Professional

Leaderboard