Showing results for 
Search instead for 
Did you mean: 
milky_bar_may Helper IV
Helper IV

Gallery Issue Checkbox

Hi Everyone! 


I have a gallery with checkboxes. 


The user selects the checkbox and then there is a button outside the screen to patch it through to my sharepoint list. 


I want to block off the row in the gallery with a rectangle so the user cannot action the item again.


I tried using the group function but it blocks off all the items in the galler.y





Super User
Super User

Re: Gallery Issue Checkbox

Hi @milky_bar_may 

Use your rectangle idea but make is visible property Checkbox1.Value

eka24 Community Champion
Community Champion

Re: Gallery Issue Checkbox

Try this:

At the beginning of the UnCheck of the CheckBox:

Collect(DisableCheck, ThisItem.ID)
Then on the Displymode of the CheckBox:
If(ThisItem.ID in DisableCheck, DisplayMode.Disabled, DisplayMode.Edit)
if you want to use the visible
If(ThisItem.ID in DisableCheck, false, true)

If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

Re: Gallery Issue Checkbox



Based on the issue you mentioned, do you want to disable the checkbox once it is checked.

I assume that the CheckBox has the corresponding values to a column in your SP list. And you want to avoid repeating patch CheckBox value. On this premise, I have a test on my side, please take a try as below:

  • Set the Default property of your CheckBox as below:
  • Set the OnCheck property of your CheckBox as below:

As an alternative solution, you can also set the rectangle visible property as below:



Best Regards,

Qi Qiao

Super User
Super User

Re: Gallery Issue Checkbox

The If() is unnecessary since Checkbox1.Value reduces to either true or false and that answers your question as you posed it.

KroonOfficeSol Resident Rockstar
Resident Rockstar

Re: Gallery Issue Checkbox

@milky_bar_may  You say there is a button to patch() the collection to the SharePoint list. This presumed that you first do an action on the datasource and after the update you don't want the user to be able to make another patch(0 on this record, is this right.


So my first question should be: what do you change in your Sharepoint list? Then my advise would be to refresh your gallery/datasource and make a condition on ThisItem.ChangedField which is on the Checkbox.Visible. No Checkbox for the record, means the user isn't able to click it, right.


Hope this helps.

Helpful resources

MBAS Gallery 2020

MBAS Gallery 2020

Watch Microsoft Business Applications Summit sessions on-demand.

‘Better Together’ T-Shirt Contest – Winner Announced!

‘Better Together’ T-Shirt Contest – Winner Announced!

And the winner is...


New Ranks and Rank Icons released on April 21!

The time has come: We are finally able to share more details on the brand-new ranks coming to the Power Apps Community!

Power Platform 2020 release wave 1 plan

Power Platform 2020 release wave 1 plan

Features releasing from April 2020 through September 2020

Top Solution Authors
Top Kudoed Authors
Users online (6,173)