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 / Help with checkboxes i...
Power Apps
Unanswered

Help with checkboxes in a gallery.

(0) ShareShare
ReportReport
Posted on by 6

Is it possible to update a checkbox value in a gallery based on another field's info. For example, I have a dropdown with the values "Active" and "Inactive". It's default is based an IF statement, and that works fine. There are 5 of these types of dropdowns, Compensation, Work Location, Leave, Terms, and Status. 

 

I also have a gallery with checkboxes, and their values correspond to the names of each of the 5 dropdowns. What I'm trying to get happen is to get the individual check boxes to be marked only if the corresponding dropdown is marked as active. 

Capture2.PNG
Capture.PNG
Categories:
  • StalinPonnusamy Profile Picture
    Super User 2024 Season 1 on at

    Hi @CassandraW 

     

    Set the Default Property of the Compensation Check box to

     

     

    CompensationDropDown.Selected.Value = "active"

     

    Like you have set all other Checkboxs


    Thanks,
    Stalin - Learn To Illuminate

     

  • StalinPonnusamy Profile Picture
    Super User 2024 Season 1 on at

    Hi @CassandraW 

     

    In this example, the check box is checked when Priority = "Critical"

     

    StalinPonnusamy_0-1634843115253.png

     

  • CassandraW Profile Picture
    6 on at

    Hi Stalin, 

    Thanks for your quick reply! I'm using a gallery with a checkbox inserted, so setting it to be active on the one dropdown will affect all of the checkboxes. I'm trying to compile the IF statement that will check the appropriate checkbox based on the 5 dropdown statuses of Active or inactive. 

    Sadly enough, I figured out how to do this before but have forgotten the syntax. 

  • StalinPonnusamy Profile Picture
    Super User 2024 Season 1 on at

    Hi @CassandraW 

     

    Is each checkbox related to each dropdown?

     

    Here are samples to combine multiple conditions (s)

    CompensationDropDown.Selected.Value = "active" && Dropdown2.Selected.Value = "New"

     

    CompensationDropDown.Selected.Value = "active" || Dropdown2.Selected.Value = "New"
    
    OR
    
    CompensationDropDown.Selected.Value = "active" || (Condition 1 && Condition 2)

     

    Dropdown1.Selected.Value in ["Value1", "Value2..."]

     

  • StalinPonnusamy Profile Picture
    Super User 2024 Season 1 on at

    Hi @CassandraW 

     

    When do you want to check/tick the checkbox for work location? If it depends on only one dropdown then

    WorklocationDropdown.Selected.Value="active"

     

    we can combine with multiple other values like

     

    WorklocationDropdown.Selected.Value="active" && StatusDropdown.Selected.Value="new"


    Thanks,
    Stalin - Learn To Illuminate

  • CassandraW Profile Picture
    6 on at

    Each of the five checkboxes has a dropdown that correlates to it. So there's a drop down for work location, and a check box in the gallery called Work Location. When the drop down is set to active for work location, then just work location should be checked. So far everything I've tried checks all of the boxes instead of just the check box that matches a specific dropdown. 

  • StalinPonnusamy Profile Picture
    Super User 2024 Season 1 on at

    Hi @CassandraW 

     

    Not sure what I'm missing since this is straightforward.

    I assume you have 5 checkboxes and 5 dropdowns for each row on the gallery. Condition applies to all the rows based on a specific row/item data

     

    Is this setup is correct?

    StalinPonnusamy_2-1634914207057.png

     

    Set the default property of the checkbox to

    WorkLocationDropdown.Selected.Value="Active"

     

     

  • CassandraW Profile Picture
    6 on at

    My apologies for the confusion. The dropdowns are outside of the gallery, in a form. I was pulled in to the project near the end of it's conception so I'm trying to work with the setup the initial creator has. 

  • StalinPonnusamy Profile Picture
    Super User 2024 Season 1 on at

    Hi @CassandraW 

     

    The same formula goes to form as well

    StalinPonnusamy_0-1634922631251.png

     

    Please share what is not working or any error or current code you tried, so that we can find the root cause.


    Thanks,
    Stalin - Learn To Illuminate

     

  • StalinPonnusamy Profile Picture
    Super User 2024 Season 1 on at

    Hi @CassandraW 


    Please let us know if anything needs on your post. We can help with this.

    Please mark the post as Solved If I have answered your question.
    Please give it a Thumbs Up if you find the suggestion helpful

    Thanks,
    Stalin - Learn To Illuminate

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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 393 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 328

#3
WarrenBelz Profile Picture

WarrenBelz 278 Most Valuable Professional

Last 30 days Overall leaderboard