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 / Checkbox Dependencies
Power Apps
Unanswered

Checkbox Dependencies

(0) ShareShare
ReportReport
Posted on by Microsoft Employee
Hello everyone,
I'm dealing with a form that has multiple checkboxes. I was wondering if it was possible to check automatically one checkbox when another is checked. In other words, if i check checkbox1 also checkbox2 has to check automatically.
Additionally, I'd like to ask if it's possible to create dependencies between checkboxes. thus, when one is checked the following ones become mandatory and viceversa. Remember that I'm in a form and I need the expression 'ThisItem.xxxx' in Default section for editing mode.
Thank you in advance
Categories:
  • BCLS776 Profile Picture
    8,994 Moderator on at

    Yes, you can do this using a variable in the Default property of the checkbox you want to make dependent on another. Example, using two checkboxes: Checkbox1 and Checkbox2

    In the OnCheck property of Checkbox1, put: UpdateContext({ varIsChecked: true });

    In the OnUnCheck property of Checkbox1, put: UpdateContext({ varIsChecked: false });

    In the Default property of Checkbox2 (or its parent card), put: varIsChecked

     

    You mentioned you need to keep the Default property referring to ThisItem.xxxx when the form is in Edit mode. You can use conditional logic to accomplish this:

    If(myForm.Mode = FormMode.Edit, ThisItem.xxxx, varIsChecked)

    Hope that helps,

    Bryan

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 226 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 191 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 167

Last 30 days Overall leaderboard