cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
xzDan
Level 8

Dropdown Filtering not working

This seems to work in Edit mode, not in live.

 

Very simple dropdown in a Form with 4 options, two of which end in 'start /end'.

 

Code for items is:

If(
    Edit_Form.Mode=FormMode.Edit,
    Choices(<Source>.Column),
    Filter(Choices(<Source>.Column),EndsWith(Value,"start /end"))
)

Again this seems to work fine when editing the app, but in live it will usually display all the options.

Am I missing something?

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: Dropdown Filtering not working

Hi @xzDan ,

Could you please share a bit more about your issue?

Do you mean that the formula you provided could not work when you run your app in web browser?

 

I have made a test on my side, and don't have the issue that you mentioned. As an alternative solution, please consider take a try with the following workaround:

Set the OnVisible property of the Edit screen (which contains your Edit form) of your app to following:

 

If(
   Edit_Form.Mode = FormMode.Edit,
   ClearCollect(DropdownOptions, Choices(<Source>.Column)),
   ClearCollect(DropdownOptions, Filter(Choices(<Source>.Column),EndsWith(Value,"start /end")))
)

Set the Items property of the Choice ComboBox in your Edit form to following:

DropdownOptions

Best regards,

 

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

5 REPLIES 5
Community Support Team
Community Support Team

Re: Dropdown Filtering not working

Hi @xzDan ,

Could you please share a bit more about your issue?

Do you mean that the formula you provided could not work when you run your app in web browser?

 

I have made a test on my side, and don't have the issue that you mentioned. As an alternative solution, please consider take a try with the following workaround:

Set the OnVisible property of the Edit screen (which contains your Edit form) of your app to following:

 

If(
   Edit_Form.Mode = FormMode.Edit,
   ClearCollect(DropdownOptions, Choices(<Source>.Column)),
   ClearCollect(DropdownOptions, Filter(Choices(<Source>.Column),EndsWith(Value,"start /end")))
)

Set the Items property of the Choice ComboBox in your Edit form to following:

DropdownOptions

Best regards,

 

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

xzDan
Level 8

Re: Dropdown Filtering not working

Just that it does not seem to always work in the web browser. It used to work 99% of the time, and occasionally I would see all options become visible, but now it seems to not work 99% of the time. I will try your suggestion though, thank you.

Community Support Team
Community Support Team

Re: Dropdown Filtering not working

Hi @xzDan ,

Have you taken a try with the alternative solution I provided?

Have you solved your problem?

 

If you have solved your problem, please go ahead to click "Accept as Solution" to identify this thread has been solved.

 

Best regards,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
xzDan
Level 8

Re: Dropdown Filtering not working

I will try it out later today!

xzDan
Level 8

Re: Dropdown Filtering not working

@v-xida-msft Thanks a lot!

Out of interest, is there a reason why this does not work the way I did it? I have had an issue similar to this before (can't recall off the top of my head) where I had to have a collection instead of doing a check similar to the problem here. I take it this should not be the case - perhaps a bug?

Helpful resources

Announcements
thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

Top Kudoed Authors
Users Online
Currently online: 339 members 5,991 guests
Recent signins:
Please welcome our newest community members: