web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id : cNK5rYzzgaSw67qeOgTpO1
Power Apps - Building Power Apps
Answered

Checkbox control

Like (0) ShareShare
ReportReport
Posted on 24 Jan 2023 09:54:38 by 125

In my app, I have two checkboxes on the different screens.

I want that if i select/check the one checkbox , the other one should checked automatically & vice versa if i checked 2nd one then 1st one should be automatically selected.

 

I did , i applied on the Default of 1st checkbox: if(checkbox1.Value=true, true).

 

It is working. But vice versa is not working. I am unable to put the same condition on 2nd checkbox default property [if(checkbox2.Value=true,true)]. Its giving error that circular link is not possible.

 

Please give answer if anyone aware.

  • Verified answer
    Ali_sam Profile Picture
    125 on 25 Jan 2023 at 04:32:37
    Re: Checkbox control

    Thanx @iAm_ManCat , it worked perfectly.

  • Verified answer
    iAm_ManCat Profile Picture
    18,206 Most Valuable Professional on 24 Jan 2023 at 14:21:13
    Re: Checkbox control

    Use a variable as an intermediate step, that stops it from being circular.

     

    So on your OnCheck for both of them, you set a variable that can be accessed by both

    Set(gblCheckboxesChecked, true);

    Then on the OnUnCheck for both of them you have:

    Set(gblCheckboxesChecked, false);

     

    Then make the Default value for both of them to be:

    gblCheckboxesChecked

     

    Now when you check/uncheck one, the other will mirror it and show the same 🙂

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

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 791 Most Valuable Professional

#2
MS.Ragavendar Profile Picture

MS.Ragavendar 410 Super User 2025 Season 2

#3
mmbr1606 Profile Picture

mmbr1606 275 Super User 2025 Season 2

Loading complete