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 Issue Checkbox
Power Apps
Unanswered

Gallery Issue Checkbox

(0) ShareShare
ReportReport
Posted on by 228

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

 

Thanks

 

D

Categories:
I have the same question (0)
  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    Hi @milky_bar_may 

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

  • eka24 Profile Picture
    20,923 on at
    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)
     
    Or
    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.
  • Verified answer
    v-qiaqi@microsoft.com Profile Picture
    on at

    Hi@milky_bar_may,

     

    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:
    If(Gallery1.DisplayMode=DisplayMode.Edit,false,true)
    • Set the OnCheck property of your CheckBox as below:
    If(Checkbox2.Value=true,DisplayMode.Disabled,DisplayMode.Edit)

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

    If(Checkbox2.Value=true,true,false)

     

    Best Regards,

    Qi Qiao

  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at

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

  • KroonOfficeSol Profile Picture
    587 on at

    @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.

  • milky_bar_may Profile Picture
    228 on at

    Sorry for the delayed response everyone. I appreciate all your comments. 

     

    Thanks @v-qiaqi-msft , your solution worked out for me. 

  • JanCarla Profile Picture
    23 on at

    Hi,

     

    I just need help on patching checkbox value inside a gallery. Could you please share how did you do it on your end.

     

    Thank you.

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