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 / 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

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
Kalathiya Profile Picture

Kalathiya 421

#2
WarrenBelz Profile Picture

WarrenBelz 365 Most Valuable Professional

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 339 Super User 2025 Season 2

Last 30 days Overall leaderboard