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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Gallery checkbox autom...
Power Apps
Unanswered

Gallery checkbox automatically unchecks

(0) ShareShare
ReportReport
Posted on by 292

Hello All, 

 

I have 4 pages of different gallery with checkbox. When the user selects 3 checkbox and then moves to next page and selects 2 more checkbox.

 

When the user tries to go back to page 1 to modify the checked items, the gallery gets resets and all checked box is unchecked. 

 

Users want to go back to see all the checked box results before submitting. 

 

Please advise how to ensure the checked box data is present even if the users go to all the pages and revisits the checked items before Submitting. 

Categories:
I have the same question (0)
  • KrishnaV Profile Picture
    5,023 on at

    Hi @nagaraj007 ,

     

    This is a known issue with checkboxes in a gallery. To avoid this add all the gallery items with checkbox behavior to a collection onSelect of next screen button and when the user comes back you need to validate against the collection.


    I hope this resolved your issue if you see any challenge/need further help please let me know I am always happy to do it for my community.

    Regards,
    Krishna
    If this post helps you give a 👍 and if it solved your issue consider Accept it as the solution to help the other members find it more.

  • nagaraj007 Profile Picture
    292 on at

    Hi Krishna, 

    I have 1 gallery with checkbox in 4 pages. So overall 4 gallery with different data source. Now I want to save the collection to sharepoint. I am very new to this, could you please help me to create collection and also saving the data to sharepoint

  • v-yutliu-msft Profile Picture
    on at

    Hi @nagaraj007 ,

    Do you mean that if you navigate to other screens and go back to the previous screen, the checked box will reset to unchecked automatically?

    Could you show me all the settings of these screens, galleries, checkboxes?

    I've made a similar test but not met the same problem like your description.

    Here's my test for your reference:
    1)screen1, insert a gallery and a checkbox inside the gallery, a navigate button

    set the gallery's Items:  list1

    set the checkbox's OnCheck:

    Collect(test,ThisItem)

    set the checkbox's OnUncheck:

    RemoveIf(test,ID=ThisItem.ID)

    set the navigate button's OnSelect:

    Navigate(Screen2)

    2)screen2, insert a gallery and a checkbox inside the gallery, a navigate button

    set the gallery's Items:  list2

    set the checkbox's OnCheck:

     

    Collect(test,ThisItem)

     

    set the checkbox's OnUncheck:

     

    RemoveIf(test,ID=ThisItem.ID)

     

    set the navigate button's OnSelect:

     

    Navigate(Screen1)

     

     

    If I make selections in screen1 and navigate to screen2, make some selections in screen2, click navigate button to navigate back to screen1, the checked items still retain to be checked.

    76.gif

     

     

     

    Best regards,

  • KrishnaV Profile Picture
    5,023 on at

    Hi @nagaraj007 ,

     

    I hope you got the idea how to implement this functionality with collections now.

     

    @v-yutliu-msft : Thank you for your reply user has no idea how to use collection so he has not implemented it with collections. I am glad you provided the same solution what I have with me (sorry it is just time zone gap 😊 )


    I hope this resolved your issue if you see any challenge/need further help please let me know I am always happy to do it for my community.

    Regards,
    Krishna
    If this post helps you give a 👍 and if it solved your issue consider Accept it as the solution to help the other members find it more.

  • nagaraj007 Profile Picture
    292 on at

    Hi, I created the collection, but i want to save the data to sharepoint with a button of all the 4 collections. Please advise how to patch to sharepoint.

     

    I have gallery 1 - collection 1 , gallery 2 - collection 2 , gallery 3 - collection 3 , gallery 4 - collection 4 , (sharepoint list name id DATA where the data needs to be saved.)

  • v-yutliu-msft Profile Picture
    on at

    Hi @nagaraj007 ,

    Please show me:

    1)what formula do you use to create or update these four collections

    2)the structure of your collections and sharepoint list(fieldname, field data type)

     

     

    Best regards,

  • nagaraj007 Profile Picture
    292 on at

    Hi,

     

    Please find the attachments of all the required info. collection data.pngcollection.pngsharepoint structure.png

  • Verified answer
    KrishnaV Profile Picture
    5,023 on at

    Hi @nagaraj007 ,

     

    Add the selected checkboxes to a collection as below:

    Collect(collSelected,thisitem)

    On Default value of the checkbox add the below formula:

    if(isBlank(Lookup(collSelected,ID=thisitem.ID,ID)),false,true)

     
    I hope this resolved your issue if you see any challenge/need further help please let me know I am always happy to do it for my community.

    Regards,
    Krishna
    If this post helps you give a 👍 and if it solved your issue consider Accept it as the solution to help the other members find it more.

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard