cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Leu0101
Helper III
Helper III

Visibility based on whether multiple choice column contains specific multiple values

I was trying to make a label's visibility false if my multiple choice column  "BidStatus" value contained finalizing, create quote, or funding value. However it doesnt not seem to work using this code: 

 

If(SelectedTicket.BidStatus.Value = "Finalizing" || "Create Quote" || "Funding", false ,true)

 

Is there another way I should be coding or looking at this?

 

Thanks for the help!

1 ACCEPTED SOLUTION

Accepted Solutions
Anonymous
Not applicable

@Leu0101 

Unfortunately, you need to write this code out in full, ie

 

If(
   SelectedTicket.BidStatus.Value = "Finalizing" || 
   SelectedTicket.BidStatus.Value = "Create Quote" || 
   SelectedTicket.BidStatus.Value = "Funding", 
   false,
   true
)

 

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

@Leu0101 

Unfortunately, you need to write this code out in full, ie

 

If(
   SelectedTicket.BidStatus.Value = "Finalizing" || 
   SelectedTicket.BidStatus.Value = "Create Quote" || 
   SelectedTicket.BidStatus.Value = "Funding", 
   false,
   true
)

 

v-jefferni
Community Support
Community Support

Hi @Leu0101 ,

 

Since it is a choices column that allows multiple selection, the selected values are actually in a table. As per your goal, you will need to change the formula to:

If( "Finalizing" in SelectedTicket.BidStatus.Value || "Create Quote" in SelectedTicket.BidStatus.Value || "Funding" in SelectedTicket.BidStatus.Value , false ,true)

 

Hope this helps.

 

Best regards,

Community Support Team _ Jeffer Ni
If this post helps, then please consider Accept it as the solution to help the other members find it.

Community Support Team _ Jeffer Ni

If this post helps, then please consider Accept it as the solution to help the other members find it.

Leu0101
Helper III
Helper III

Thanks for the information! Good to know!

Helpful resources

Announcements
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Microsoft 365 Conference – December 6-8, 2022

Microsoft 365 Conference – December 6-8, 2022

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (3,773)