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 / Nested If Condition
Power Apps
Answered

Nested If Condition

(0) ShareShare
ReportReport
Posted on by 1,362
Hello, 
I am trying to set the visibility property of some fields based on what is selected from multi-select checkboxes.

I have three checkboxes lets call them:
Checkbox 1
Checkbox 2
Checkbox 3
 
a collection holds the value of what was chosen from the checkboxes.

For my example, I will use one field called TestField.
 
TestField - if checkbox1 is true, true
TestField - if checkbox2 is true, false
TestField - if checkbox3 is true, false
TestField - if checkbox1 and checkbox2 is true, false
TestField - if checkbox2 and checkbox3 is true, false
TestField - if checkbox1 and checkbox3 is true, false
 
TestField1 - if checkbox2 is true, true
TestField1 - if checkbox1 is true, false
TestField1 - if checkbox3 is true, false
TestField1 - if checkbox1 and checkbox2 is true, false
TestField1 - if checkbox2 and checkbox3 is true, false
TestField1 - if checkbox1 and checkbox3 is true, false
 
TestField2 - if checkbox3 is true, true
TestField2 - if checkbox1 is true, false
TestField2 - if checkbox2 is true, false
TestField2 - if checkbox1 and checkbox2 is true, false
TestField2 - if checkbox2 and checkbox3 is true, false
TestField2 - if checkbox1 and checkbox3 is true, false
 
TestField3 - if checkbox1 and checkbox2 is true, true
TestField3 - if checkbox2 and checkbox3 is true, false
TestField3 - if checkbox1 and checkbox3 is true, false
 
TestField4 - if checkbox2 and checkbox3 is true, true
TestField4 - if checkbox1 and checkbox2 is true, false
TestField4 - if checkbox1 and checkbox3 is true, false
 
 
I've tried many variations of If, then else and cant seem to figure it out.
Any direction to get me on the right path is appreciated.
Categories:
  • Suggested answer
    Daniel Bocklandt Profile Picture
    5,151 Super User 2026 Season 1 on at
    Hey can you try this for TestfField :
    Checkbox1.Value And !Checkbox2.Value And !Checkbox3.Value
    You don't need an ifstatement of the result of the If Statement is  true or flase. 
     
    TestField1
    !Checkbox1.Value And Checkbox2.Value And !Checkbox3.Value
    TestField2
    !Checkbox1.Value And !Checkbox2.Value And Checkbox3.Value
    TestField3
    Checkbox1.Value And Checkbox2.Value And !Checkbox3.Value
    TestField4
    !Checkbox1.Value And Checkbox2.Value And Checkbox3.Value
    You just need to put them into the Visible property. 
     
    If this solvede your porblem please accept it as solution so others can find it as well. 
    If it helped in any other way consider liking it so we can keep supporting eachother. 
  • Suggested answer
    Daniel Bocklandt Profile Picture
    5,151 Super User 2026 Season 1 on at
    Hey Just a follow up to see if my solution worked for you

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

#2
Mohsin Ali Profile Picture

Mohsin Ali 329

#3
WarrenBelz Profile Picture

WarrenBelz 187 Most Valuable Professional

Last 30 days Overall leaderboard