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 / Uncheck a box when che...
Power Apps
Answered

Uncheck a box when checked one checkbox

(1) ShareShare
ReportReport
Posted on by 433

Hello Everyone,

 

I have two Checkboxes, CheckBoxA and CheckBoxB. Would like to to have them unchecked on the app load.

 

If CheckBoxB is checked and then CheckBoxA is checked it should uncheck CheckBoxB.

If CheckBoxA is checked and then CheckBoxB is checked it should uncheck CheckBoxA.

 

Can anyone please help me?

 

Categories:
I have the same question (0)
  • Shaheer Ahmad Profile Picture
    2,194 Moderator on at

    You can use the following formula for the OnChange property of both CheckBoxA and CheckBoxB:

    For CheckBoxA:

     

    If(CheckBoxA.Value, Set(CheckBoxB, false))

     

    For CheckBoxB:

     

    If(CheckBoxB.Value, Set(CheckBoxA, false))

     

    Make sure to replace CheckBoxA and CheckBoxB with the actual names of your checkboxes in the formulas.

  • KrishR Profile Picture
    433 on at

    Hi @ShaheerAhmad ,

     

    Thanks for your help. It is OnCheck or OnChange? I don't find on change property on the check box.

     

  • KrishR Profile Picture
    433 on at

    @ShaheerAhmad ,

     

    FYI

     

    I'm using modern control checkbox.

  • Shaheer Ahmad Profile Picture
    2,194 Moderator on at

    You can do the same on "OnCheck" Property.

  • KrishR Profile Picture
    433 on at

    @ShaheerAhmad ,

     

    Tried the formulae, it doesn't allow ".Value" and doesn't allow set action too. Says "Formulae contains controls where Ident is expected".

     

    Another thing forgot to mention, I had these 2 check. boxes inside an control converted from drop down to checkboxes.

     

    Hope this helps.

     

    Thank you so much again 

  • Verified answer
    Shaheer Ahmad Profile Picture
    2,194 Moderator on at

    Checkbox 1 Properties:

    ShaheerAhmad_3-1699596842989.png

    Checkbox 2 Properties:

    ShaheerAhmad_4-1699596862406.png

     

    Mark as solution if this solves your issue

  • DDPR14 Profile Picture
    12 on at

    Hi Hope this Helps!

    'OnChange' Property of CheckBoxA

    Default: false
    OnChange:
     If(
     CheckBoxA.Value,
     Set(CheckBoxB, false)
     )

     

    'OnChange' Property of CheckBoxB

    Default: false
    OnChange:
     If(
     CheckBoxB.Value,
     Set(CheckBoxA, false)
     )

     

     

     

  • KrishR Profile Picture
    433 on at

    @ShaheerAhmad ,

     

    Thank you so much! That did work.

     

    Another couple questions, how do we set both the check box values to false (Uncheck on form load) also I clicked on checked box and it deselects and selects other check box.

     

    I'm trying to establish a requirement where a user can uncheck both of them if they don't want to answer.

     

    Thank you so much!

  • Shaheer Ahmad Profile Picture
    2,194 Moderator on at

    Just remove the code from onUnCheck property of both controls and i hope it should perform the way you want it.

     

    Mark as solution and give thumbs up if this helps

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!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 893

#2
Valantis Profile Picture

Valantis 571

#3
11manish Profile Picture

11manish 482

Last 30 days Overall leaderboard