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 / Select all gallery exc...
Power Apps
Unanswered

Select all gallery except disable field

(0) ShareShare
ReportReport
Posted on by 40

I have made my app for picking the names of relevant users. Something I can't solve myself is the checkbox. While I select one the of checkbox in the gallery, another checkbox in the line item should be disabled and cannot be selected. Like the following picture

 

saranp780_0-1638846258504.png

Right checkbox (for my deleted check box)

 

But in the activate checkbox I cannot put the code because the error has occurred.

 

saranp780_1-1638846551950.png

 

Wrong checkbox

 

This is the code for Deleted checkbox on the default property.

 

saranp780_2-1638846680978.png

 

When I have put the same code on the default property of the Activated checkbox, an error occurs immediately.

 

saranp780_3-1638846965656.png

 

Who can solve this? Please help

 

 

 

Categories:
I have the same question (0)
  • RusselThomas Profile Picture
    4,014 on at

    Hi @saranp780 ,

    Focusing purely on the error - what is SelectAll_activate resolving to?

     

    You may also want to confirm that the way you've written your formula is giving you the output you want.  It may be "working" in the one instance, but is it working the way you think it is?

     

    The construct of the If() statement can be one of the following;

    If( condition, value if true, value if false)

    If( condition, value if true, condition, value if true, condition, value if true, ...., value if none of the conditions is true)

     

    Note:

    • Condition will always be immediately followed by value if true.
    • The default value would normally follow a value if true, but it is optional - so if you leave it out, PowerApps doesn't throw out an error.

    Your "working" code is being resolved by PowerApps as follows;

    If( condition, SelectAll_activate/deletetrue, false)

    Note you have two conditions and two correlating value if true statements in the above, with no default or value if false conditions - 

    1. condition & SelectAll_activate/deleteand
    2. true & false

    This happens because a condition statement can be replaced by a pure boolean and the formula will be valid - even if the condition outcome is forced. 

    By specifying a boolean in the place of a condition you are telling PowerApps that the condition result will always be true, and if it evaluates that condition it will therefore always return the value if true that comes immediately after the condition - which in your case, the value to return if true has been specified as false.

    It will only evaluate this second condition, if the first condition is false.

    If all conditions are false, it will return Blank.

     

    Hope this explanation helps,

     

    Kind regards,

    RT

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
WarrenBelz Profile Picture

WarrenBelz 356 Most Valuable Professional

#2
11manish Profile Picture

11manish 225 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 211

Last 30 days Overall leaderboard