cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Chairmanmau
New Member

Set variable for dropdown and use it as default

Hello,

 

I have been reading some of the threads on variables, but I just cant make it work. I have several dropdown menus I would like to have the result set as variable and then use that variable as a default so that i don't have to change it if i have several items i need to add to the SharePoint with similar parameters. I have tried everything and now my powerapp wont even pass the drop down selection to the sharepoint. What am I doing wrong? where can I find more resources about variables and setting them as defaults. 

 

Chairmanmau_0-1612222373837.png

 

2 REPLIES 2
RandyHayes
Super User
Super User

@Chairmanmau 

1) Move your OnSelect formula to the OnChange action

2) Set the DefaultSelectedItems property to: varLoc

 

I hope this is helpful for you.

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up below. Solved your problem? - Click on Accept as Solution below. Others seeking the same answers will be happy you did.
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes

Really want to show your appreciation? Buy Me A Cup Of Coffee!
Chairmanmau
New Member

Thanks, was able to pass it as a table Table({varLoc}), now the data wont update on the sharepoint list. 😞

Helpful resources

Announcements
User Group Leader Meeting January 768x460.png

Calling all User Group Leaders!

Don't miss the User Group Leader meetings on January, 24th & 25th, 2022.

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Top Solution Authors
Top Kudoed Authors
Users online (1,662)