cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Regular Visitor

Commands doesn't work with cascading dropdowns (SharePoint)

Hi all, 


I made a cascading dropdown in Powerapps, based on a SharePoint list. So far so good, it works. 

However, additional functionalities don't work, like: "if I select this value then it has to launch this page" or "if I select this value then it has to show this button" etc.

 

It works perfectly when I try exact the same commands on a normal dropdown (so not a cascading dropdown and not based on SharePoint). For example: 

 

 

If(Dropdown2.Selected.Value = "Algemeen" ; Launch("www.google.com"))

 

 

Any idea why this don't work on cascading dropdowns (based on a sharepoint list)? 

 

Thanks in advance

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Regular Visitor

Re: Commands doesn't work with cascading dropdowns (SharePoint)

Well, the answer of mdevaney was kinda right, the solution is to change "value" to "category" or in my case "subcategory"

 

So...

 

Dropdown2.Selected.Subcategory="General";Launch("www.google.com"))

or 

Dropdown2.Selected.Category="General";Launch("www.google.com"))

It depends..

View solution in original post

6 REPLIES 6
Highlighted
Super User
Super User

Re: Commands doesn't work with cascading dropdowns (SharePoint)

@testnow123 

Share your code.  No way to troubleshoot without this information really.  Screenshots are also helpful.

Highlighted
Regular Visitor

Re: Commands doesn't work with cascading dropdowns (SharePoint)

Hi @mdevaney , 

Thanks for your reaction.

 

 

 

Dropdown 1 
Items: Distinct('Source List';Category) 

Dropdown 2
Items: Filter('Source List'; Category= Dropdown1.Selected.Result)
OnChange: If(Dropdown2.Selected.Value = "General" ; Launch("www.google.com"))

 

 

 

I think the code is ok, because it works for a "normal" dropdown...

 

 

 

Highlighted
Super User
Super User

Re: Commands doesn't work with cascading dropdowns (SharePoint)

@testnow123 

Can you please try changing this code

If(Dropdown2.Selected.Value = "General" ; Launch("www.google.com"))

 

To this code instead?

If(Dropdown2.Selected.Result= "General" ; Launch("www.google.com"))

 

---
Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

Highlighted
Regular Visitor

Re: Commands doesn't work with cascading dropdowns (SharePoint)

Hi @mdevaney , 

 

Thanks for your quick response. However, it doesn't recognize "result" and unfortunately it doesn't work.

 
 

Screenshot.PNG

Highlighted
Regular Visitor

Re: Commands doesn't work with cascading dropdowns (SharePoint)

Well, the answer of mdevaney was kinda right, the solution is to change "value" to "category" or in my case "subcategory"

 

So...

 

Dropdown2.Selected.Subcategory="General";Launch("www.google.com"))

or 

Dropdown2.Selected.Category="General";Launch("www.google.com"))

It depends..

View solution in original post

Highlighted
Super User
Super User

Re: Commands doesn't work with cascading dropdowns (SharePoint)

@testnow123 

Just thought I would explain...

 

Result and Value are the generic fieldnames for PowerApps dropdowns.  There are cases where you must write the specific column names (so it would have been my next suggestion) buy for the 80% of people either Value or Result seems to work.

Helpful resources

Announcements
August 2020 Community Challenge: Can You Solve These?

August 2020 Community Challenge: Can You Solve These?

We're excited to announce our first cross-community 'Can You Solve These?' challenge!

secondImage

Return to Workplace

Reopen responsibly, monitor intelligently, and protect continuously with solutions for a safer work environment.

secondImage

Super Users Coming in August

We are excited for the next Super User season.

secondImage

Community User Group Member Badges

FIll out a quick form to claim your community user group member badge today!

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (7,409)