web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Set variable for dropd...
Power Apps
Unanswered

Set variable for dropdown and use it as default

(0) ShareShare
ReportReport
Posted on by 2

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

 

Categories:
  • RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @Chairmanmau 

    1) Move your OnSelect formula to the OnChange action

    2) Set the DefaultSelectedItems property to: varLoc

     

    I hope this is helpful for you.

  • Chairmanmau Profile Picture
    2 on at

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

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 411 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 338

#3
WarrenBelz Profile Picture

WarrenBelz 256 Most Valuable Professional

Last 30 days Overall leaderboard