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 / Setting the Default Va...
Power Apps
Answered

Setting the Default Value in a Dropdown connected to SharePoint List

(0) ShareShare
ReportReport
Posted on by 9

Hi,

I am trying to do something quite simple but not so sure how to achieve this. I have done some search in here for some suggestions too. Apologies if I am asking a question that has already been answered.

 

I have a Form Connected to a SharePoint List. In the form ColumnX is connected to a Dropdown and the items are automatically populated from SharePoint. I want to achieve this:

 

When the Form is in New Mode, I want to change the Default Value in the Dropdown and when the form is in Edit mode, I would like it to be Parent.Default.

 

Depending on the User() who is using the PowerApp, I want to pick a different Default value for the Dropdown in the form when it is in the new mode. Something like this:

 

During the load of the app, a Global Variable will be initialized depending on the User:

Set(globalVariable, "")

If (User().Email = "something@something.com", gloablVariable="Value1",(if User().Email = "somethingelse@something.com", globalVariable=Value2))

if(fmMyForm.Mode = FormMode.New, globalVariable , Parent.Default)

 

I am very new to the whole PowerApps things, so I might be trying to do this the wrong way. Appreciate if somebody could guide me in the right direction.

 

Thanks

Categories:
  • Verified answer
    madhuperera Profile Picture
    9 on at

    I think I solved this with the help of this thread: https://powerusers.microsoft.com/t5/General-Discussion/Default-Dropdown-Value-Not-Working/m-p/143759#M49326

    If( EditForm1.Mode = FormMode.New, LookUp( Choices(MyListName.Department), Value = "Sales"), Parent.Default)

     

    This seems to work with my Global Variable. 

  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    @madhuperera,

     

    Nice going.  Give yourself a kudo and mark the message solved.

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 243 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 204 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 122

Last 30 days Overall leaderboard