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

Checkbox Dependencies

(0) ShareShare
ReportReport
Posted on by
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:
I have the same question (0)
  • 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

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

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard