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 / Filter gallery using l...
Power Apps
Answered

Filter gallery using list box and see checked items after changing filter

(0) ShareShare
ReportReport
Posted on by 2

Hello everyone.


Can you help me with this?


I have a list of types which I using for filtering the data from the table in the gallery. In the gallery I added the text box and check box. After checked the check box, the text box needs to be disabled. The problem is that after the first check or re-filtering (selecting the second type) of the check box, all text boxes in the gallery (text box for each item) will be disabled, If I check it, and unchecked, it will be enable. Another problem is that after filtering by another type (selecting another value from the list box) and returning to the previous one, I do not see what I have already checked.
Note: It is necessary to save the checked in the collection.

          I did the filtering as follows: Items from Gallery:

         Filter ('DataSource', (IsBlank (ListBox.SelectedItems.Value)) || (Type = ListBox.Selected.Value)).
And it works. The problem is the review, which is not satisfactory.

My questions are:
1. How do I see the checked check boxes and the values ​​entered in the text box in the gallery after filtering using the list box?
2. How do I disable the text box for only one item in the gallery, not all?

Any Help would be much appreciated
Thank you.

Categories:
I have the same question (0)
  • BCBuizer Profile Picture
    22,505 Super User 2025 Season 2 on at

    Hi @jane_h ,

     

    Can you please share a screenshot? There seems to be some information missing from your description.

     

    What is ListBox?

    How are the text boxes currently enabled/disabled?

  • dz_ha Profile Picture
    2 on at

    Hi @BCBuizer ,

    Capture.PNG

     

    This is a screenshot. 

    Types are values from the option set and filters for the gallery.
    The "Add quantity" text box needs to be disabled after the check box is checked. I did this as follows: The display mode of the text box is set to: If (checkBox.Value = true, DisplayMode.Disabled, DisplayMode.Edit).
    This works for the first item when app starts, but after that it is disabled for the others (although their check box is not checked) and it is not possible to enter a value without double-clicking on the check box.
    When change the filter from "Bag" to "Other" for example, and then go back to "Bag" I will not see the Items I previously checked and the quantity I entered.

    Can you help me with this?

    Thank you for your reply.

  • Verified answer
    BCBuizer Profile Picture
    22,505 Super User 2025 Season 2 on at

    Hi @jane_h ,

     

    Thanks for sharing. I recommend using a collection to populate your gallery and to add an extra column to that (IsSelected). You can do this using the AddColumns() function in ClearCollect() to create the collection:

     

    ClearCollect(colGallery, AddColumns(YourDataSource, "IsSelected", false))

     

    You can then link the checkbox to the data source by setting the properties of the checkbox:

    Default = ThisItem.IsSelected
    OnCheck = Patch(colGallery,ThisItem,{IsSelected: true})
    OnUncheck = Patch(colGallery,ThisItem,{IsSelected: false})

     

    The DisplayMode of the TextInput can be linked to the same column:

    DisplayMode = If(IsSelected, DisplayMode.Edit, DisplayMode.Disabled)

     

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 721 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 320 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard