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 Apps
Unanswered

Checkbox control

(0) ShareShare
ReportReport
Posted on 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.

Categories:
I have the same question (0)
  • Verified answer
    iAm_ManCat Profile Picture
    18,228 Most Valuable Professional on at

    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 🙂

  • Verified answer
    Ali_sam Profile Picture
    125 on at

    Thanx @iAm_ManCat , it worked perfectly.

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 796 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard