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 / OnCheck and OnUncheck ...
Power Apps
Answered

OnCheck and OnUncheck for Single Checkbox Selected in Gallery

(0) ShareShare
ReportReport
Posted on by 165

Hi, 

 

I have a gallery with a checkbox. I'd followed Select single checkbox within a gallery guide so that only one checkbox could be selected. I have success with the guide for one single checkbox can be selected in the gallery. 

 

Problem is that all checkboxes cannot be selected due to DisplayMode for the CheckBox is as follows:

 

 

 

If( Self.Value || Label49.Text = "1", Disabled, Edit)

 

 

 

The result of that is:

NurSabrina24_0-1668065709251.png

 

As you can see, once I have selected one, all will be disabled. So, I cannot uncheck the checked one to choose another checkbox.

 

Please help me so I can uncheck the same checkbox I have selected. 

 

Please help.

 

Thank you.

 

Categories:
I have the same question (0)
  • Verified answer
    NurSabrina24 Profile Picture
    165 on at

    Sorry, 

     

    I have found the solutions.

     

    Here for anyone who stuck in this. 

     

    NurSabrina24_0-1668066497403.png

    So, the solution I made is from the one in the original post (DisplayMode for Checkbox), I'd added a code a little: 

    If( Self.Value && Label49.Text = "1" || Label49.Text = "0", DisplayMode.Edit, Disabled)

    **Label49 is the green highlighted one where I count checkbox value in a gallery.

     

    Hope it helps you. 

     

    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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
wolenberg_ Profile Picture

wolenberg_ 119 Super User 2026 Season 1

#2
WarrenBelz Profile Picture

WarrenBelz 107 Most Valuable Professional

#3
Haque Profile Picture

Haque 103

Last 30 days Overall leaderboard