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.
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.
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
firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

FirstImage

Power Platform World Tour

Coming to a city near you

thirdimage

PowerApps Community User Group Member Badge

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

FourthImage

Join PowerApps User Group!!

Connect, share, and learn with your peers year-round

SecondImage

Power Platform Summit North America

Register by September 5 to save $200

Top Kudoed Authors
Users Online
Currently online: 217 members 4,619 guests
Please welcome our newest community members: