cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
emfuentes27
Resolver II
Resolver II

Setting dropdown selected item

I have a dropdown that needs to change the selected item based on a series of checkboxes. So far most checkboxes work perfectly, except one. The options for the dropdown are, among other ["RO", "Published", "Product Cancelled"....]. I define the current selected item by using a variable called "currentStatus", and use this on the dropdown to select it:

DefaultSelectedItems: Filter(Choices([@'Publications Log'].Status), Value in currentStatus)

The issue I'm having is between the values "RO", and "Product Cancelled". I imagine the issue is that both items contain "ro" on them. 

The checkbox OnCheck is:

OnCheck: Set(currentStatus, "Product Cancelled");

As I said, all checkboxes work fine except this one. Every time I check it, the dropdown selects "RO", instead of "Product Cancelled"

How can I fix this?

 

1 ACCEPTED SOLUTION

Accepted Solutions
emfuentes27
Resolver II
Resolver II

Oops, I just found out that I can use "exactin":

DefaultSelectedItems: Filter(Choices([@'Publications Log'].Status), Value exactin currentStatus)

It seems to be working now.

 

 

View solution in original post

1 REPLY 1
emfuentes27
Resolver II
Resolver II

Oops, I just found out that I can use "exactin":

DefaultSelectedItems: Filter(Choices([@'Publications Log'].Status), Value exactin currentStatus)

It seems to be working now.

 

 

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Power Platform Call June 2022 768x460.png

Power Platform Community Call

Join us for the next call on June 15, 2022 at 8am PDT.

PA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.

PA.JPG

New Release Planning Portal (Preview)

Check out our new release planning portal, an interactive way to plan and prepare for upcoming features in Power Platform.

Top Solution Authors
Top Kudoed Authors
Users online (2,163)