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 / How to get a "Multi Se...
Power Apps
Answered

How to get a "Multi Select Checkbox/Gallery" to automatically select additional items ...

(0) ShareShare
ReportReport
Posted on by 68

Hello everyone, 

I am new to Power Apps and I must say this community/forum has been amazing! 

I have a SharePoint list with a choice column as a data source. In my Power Apps form I followed the instructional video from @RezaDorrani to create a multi-select checkbox input that saves the choices to a collection. (Please forgive me if I am using the wrong terms.. still learning)

What I would like to be able to do is automatically select a checkbox when another item is checked. It seems like an easy thing to do but I can't for the life of me figure this one out...

Using the screenshot below what I need to do is if someone selects "Code Delivery" then automatically select "Environment" as well:

powerapps.png


 

 

Categories:
  • Verified answer
    indhaa Profile Picture
    on at

    Hi,

     

    You can use the OnCheck property of the Checkbox2_1. 

    You can add an If statement if the item value is Code delivery, add the Environment to collection as well.

     

    ClearCollect(colPWCCheckboxData,ThisItem);
    If(ThisItem.Value="Code Delivery", Collect(colPWCCheckboxData,{Value:"Enviroment"})

     

    If this helps do accept it as solution

  • CrimsonCrayon Profile Picture
    68 on at

    Hi @indhaa 

    I added a ")" at the end to close it up (since it was giving me an error) and gave it a shot. Now each time I check a box, the previous one clears out. So I tried just using:

     

    If(ThisItem.Value="Code Delivery", Collect(colPWCCheckboxData,{Value:"Enviroment"}))


    ...but nothing happens.

    My original OnCheck property of the Checkbox2_1 was:

     

    Collect(colPWCCheckboxData,ThisItem);

     

    Any suggestions?

  • indhaa Profile Picture
    on at

    Hi

     

    it was clearing since in my code it used ClearCollect.

     

    Anyway can you check if the Text is spelled correctly?

  • CrimsonCrayon Profile Picture
    68 on at

    That was exactly the issue!

    Awesome... thank you so much for your help! I will mark that as the solution.

    For anyone else that might be following this thread, I needed to also add the following to my "OnUncheck" (using the example above) otherwise the "Environment" value would remain in the collection.

    Remove(colPWCCheckboxData,ThisItem);If(ThisItem.Value="Code Delivery", Remove(colPWCCheckboxData,{Value:"Environment"}))

     

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 232 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 202 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 122

Last 30 days Overall leaderboard