Hello! I'm trying to change the Items property of a drop-down upon selected. Here's the steps.
1. User goes to screen.
2. User clicks on a button (BtnChangeSource1 OR BtnChangeSource2 )
3. The items property of the dropdown changes (DDSource)
I've created 2 Collections from the OnStart Property (IceCream and Cheese). I want my users to have to ability to change the data source of a drop down menu item when they click on either button.
How would one accomplish this?
Go to Solution.
One way to change the source of a dropdown based on button clicks is to set a variable onSelect
BtnChangeSource1 onSelect Set(Source,IceCream)
BtnChangeSource2 onSelect Set(Source,Cheese)
Then in your dropdown field
View solution in original post
That worked! I forgot that PowerApps supported variables. Thanks again!
I've revisited this problem...and I found something odd.
When I create the variable for one button :
btnAllItems OnSelect Set(CachedItems, AllItems)
I receive an error that states:
Incompatible type. We can't evaluate your formula because the context variable types are incompatible with the types of values in other places in your app.
Name isn't valid. This identifier isn't recognized. This error appears most commonly when a formula reefers to something that no longer exists(For example, a control you have deleted)
Another weird thing I've noticed. Both of these collections for btn1 and btn2 have to have similar columns. Or at least that's what I've run into. Any ideas why? Thanks
Fill out a quick form to claim your user group badge now!
Find out where you can attend!
Features releasing from October 2019 through March 2020
Learn how to build the business apps that you need.