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
Better Together’ Contest Finalists Announced!

'Better Together’ Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

thirdimage

Power Apps Community User Group Member Badge

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

sixthImage

Join THE global Microsoft Power Platform event series

Attend for two days of expert-led learning and innovation on topics like AI and Analytics, powered by Dynamic Communities

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

thirdimage

Microsoft Business Applications Virtual Launch

Join us for the Microsoft Business Applications Virtual Launch Event on Thursday, April 2, 2020, at 8:00 AM PST.

thirdimage

Community Summit North America

Innovate, Collaborate, Grow - The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Top Kudoed Authors
Users online (9,156)