cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Caroline
Resolver I
Resolver I

Referencing combobox selecteditems in If statement

Hi all

 

I'm trying to set the visibility on a data table column with an If statement based on what is selected in a combobox.

The following seemed logical, but doesn't work, and throws up a warning:

 

IF_statement.JPG

 

 

 

IF_statement_1_play.JPG

Oddly, it will work if I add an Or operator and second If statement referencing another combobox (with the true and else values of the second IF statement reversed):

IF_statement_2.JPG

IF_statement_2_play.JPG

 

In case you're wondering, I have checked that I'm referencing the comboboxes the right way around 😉

 

Any ideas?

 

10 REPLIES 10

@yashag2255 Thanks! I'm not sure what is going on. I tried the IF statement again as you suggested when I posted on Tuesday, and got the result you can see in that post.

Today, I try again, and got the desired result. Perhaps I had a typo...

 

Thank you! 

Helpful resources

Announcements
Ignite 2022

WHAT’S NEXT AT MICROSOFT IGNITE 2022

Explore the latest innovations, learn from product experts and partners, level up your skillset, and create connections from around the world.

Power Apps Africa Challenge 2022

Power Apps Africa Challenge

Your chance to join an engaging competition of Power Platform enthusiasts.

Super User 2 - 2022 Congratulations

Welcome Super Users

The Super User program for 2022 - Season 2 has kicked off!

September Events 2022

Check out all of these events

Attend in person or online, there are incredible conferences and events happening all throughout the month of September.

Users online (3,791)