Announcements
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:
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
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?
Hi
it was clearing since in my code it used ClearCollect.
Anyway can you check if the Text is spelled correctly?
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.
Congratulations to our community stars!
Expanding mentorship, skilling, and AI innovation
These are the community rock stars!
Stay up to date on forum activity by subscribing.
11manish 232 Super User 2026 Season 2
WarrenBelz 202 Most Valuable Professional
Mohsin Ali 122