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
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

Power Apps Community Call

Monthly Power Apps Community Call

Did you miss the call?? Check out the Power Apps Community Call here!

secondImage

Experience what’s next for Power Apps

See the latest Power Apps innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Power Platform ISV STudio

Power Platform ISV Studio

ISV Studio is the go-to Power Platform destination for ISV’s to monitor & manage applications post-AppSource publish.

Top Solution Authors
Top Kudoed Authors
Users online (84,975)