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 value for Drop...
Power Apps
Answered

Setting value for DropDown in EditForm

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi All,

 

I've a SharePoint List which is customized with Powerapps, the form contains 3 drop downs(Region,Country,BusinessFuncion) Region and Country are cascade dropdowns and all three fields are lookup fields in list. They are working fine while creating a new item but when Admin tries to edit a specific record details the values are not getting binded properly I'm using the below formula in Default property of Region dropdown(formula is Similar for Country,BFunction),

 

If(SMEMentorForm.Mode=FormMode.Edit Or SMEMentorForm.Mode=FormMode.View,First(Filter('Source',ID=Value(txtID.Text))).Region.Value)

 

When Admin edits the list item after refreshing the page for very first time, the first record values in list are getting binded to Region,Country,BFunction irrespective of the ID value other fields are working fine.and again when Admin tries for second time proper values are getting binded to dropdowns.

Not able to understand Powerapps behaviour here.

 

Any help would be appreciated!

 

Thanks,

SB

Categories:
  • R3dKap Profile Picture
    1,594 on at

    Hi @Anonymous,

    Could you please share with us how you set up the Items properties of your DataCardValue controls for your 3 drop-downs Region, Country and Business Function ?

    Emmanuel

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi Emmanuel,

     

    I've set the Items property of BusinessFunction dropdown to SortByColumns(BusinessFunction,"Title",Ascending), Similar to Region from RegionList and for Country.

     

     

    Thanks,

    Satish

  • Verified answer
    Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi All,

     

    I got the form working as expected I changed the formula to below one,


    If(SMEMentorForm.Mode=FormMode.Edit Or SMEMentorForm.Mode=FormMode.View,LookUp('Source',txtID.Text in ID).Region.Value)

     

    Thought it might helpful for others! Have a great day guys:)

     

    Thanks,

    SB

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

#2
Mohsin Ali Profile Picture

Mohsin Ali 368

#3
WarrenBelz Profile Picture

WarrenBelz 244 Most Valuable Professional

Last 30 days Overall leaderboard