web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Questions on how to co...
Power Apps
Answered

Questions on how to collect checkbox items and display it after submitting a form when user goes to view a submitted form

(0) ShareShare
ReportReport
Posted on by 127

Hi there,

I currently am working on a power apps application. I have a few checkbox options which i collect in a collection , I was following the tutorial by Reza Dorrani Multi Select Checkbox in Power Apps , i tried to store my values in a collection and set the collection as a default property and update property but it failed as it gave me an error. The other issue i have is that on submit the values should be stored in the collection so that when the user goes to view the submitted form they can check back on the checkbox item that they have chosen but is currently not working. Do review the screen shots and codes submitted below, do take note it can be a bit messy cause i just started working on it a few days ago:

 

Firstly on the checkbox in the new form: 

 

Default property for the data card

Yaswini24_0-1703060809718.png

 

Update property for the data card:

Yaswini24_1-1703060868670.png

Gallery Items: Choices([@NCR_RequestTable.'MRB Disposition')

Yaswini24_2-1703060951524.png

On Check: Collect(colMRBData, ThisItem)

Yaswini24_3-1703061021622.png

On UnCheck: Remove(colMRBData, ThisItem)

Yaswini24_5-1703061115184.png

OnVisible: Clear(colMRBData);
If(NCRReportForm.Mode <> FormMode.New,
Collect(colMRBData,NCRGalleryList.Selected.'MRB Disposition'))

Yaswini24_6-1703061160105.png

The code is the same for my request details screen where user only views their submitted entry except i have disabled the checkbox when they go to view the form

Yaswini24_7-1703061333311.png

Please do assist cause I am completely confused thank you

 

 

 

Categories:
  • v-mengmli-msft Profile Picture
    Microsoft Employee on at

    Hi @Yaswini24 ,

     

    First question:

    vmengmlimsft_0-1703577631377.png

     

    Second question:

    You want to view the new item in the details form after the new form is submitted. Something just likes this:

    vmengmlimsft_1-1703578347216.png

    I'm assuming the problem you're having now is that the checkbox on the detailed form isn't checked by default.

    I'm assuming that the details form's Item is NewFormName.LastSubmitted.

    Please try this:

    1.DataCard
    Default:ThisItem.'MRB Disposition'
    2.Gallery
    Items:AddColumns(Choices([@NCR_RequestTable].'MRB Disposition'),"check",Value in ThisItem.'MRB Disposition'.Value)
    3.CheckBox
    Default:ThisItem.check

     

     

    Best regards,

    Rimmon

  • Yaswini24 Profile Picture
    127 on at

    Hi @v-mengmli-msft ,

     

    currently I am able to select and store the checkbox selections in a collection when user creates a new report but after submit when user wants to view form , they cannot see the choice that they had selected, so im not sure how to display their selection from before. I will insert my screenshots here :

     

    New form submission: 

    Yaswini24_0-1703580023887.png

    When viewing the form 

    Yaswini24_1-1703580056897.png

    Both forms are on different screens for the new form it will be in the top screen: NCR_Request Screen. For the viewing of details it will be in the bottom screen : NCR_RequestDetails Screen

    Yaswini24_2-1703580108344.png

    Do let me know if you need anything else 🙂 

  • v-mengmli-msft Profile Picture
    Microsoft Employee on at

    Hi @Yaswini24 ,

     

    Whether the value of this column was successfully stored to the data source, and if so, check out the solution to the second question in my previous reply, which may be what you want.

  • Yaswini24 Profile Picture
    127 on at

    I also tried changing the value to be displayed in the items properties, for the gallery item , when i do that it shows the checkboxes that were selected but i want to see all the checkbox options but the ones that were chosen by the user has to be ticked

    Yaswini24_3-1703580655722.png

     

  • Yaswini24 Profile Picture
    127 on at

    oh this worked thank you so much 

  • Verified answer
    v-mengmli-msft Profile Picture
    Microsoft Employee on at

    Hi @Yaswini24 ,

     

    Please accept my reply as a solution.

    Thanks.

  • Yaswini24 Profile Picture
    127 on at

    Hi @v-mengmli-msft, could you assist me with another query , because once user submit the checkbox should clear for the next new form but currently it is not clearing the values previously selected, please do help , thank you 🙂 

    Yaswini24_1-1703581242399.png

     

  • v-mengmli-msft Profile Picture
    Microsoft Employee on at

    Hi @Yaswini24 ,

     

    Please post the new question to the community with a different topic. Ideally, we want posts to have only one topic as well as one question. This helps users to use the community to get answers to relevant questions. I will be online in the community for a while and will get back to you as soon as I see your question.

     

    Best regards,

    Rimmon

  • Yaswini24 Profile Picture
    127 on at

    oh ok will do thanks

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 221 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 188 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 120

Last 30 days Overall leaderboard