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 default selection ...
Power Apps
Unanswered

Set default selection for drop-down in Edit Form?

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Context:

 

I have a dropdown control being populated from my 'Customers' SharePoint list

  • CMB:SelectCustomer (name of the object)
  • Drop Down - is the Object type
  • Items: SortByColumns(Customers,"Title")
  • Value is 'Title' (the customer name)

I click an 'Add' icon to add a new Success Engagement for the selected customer and I'm taken to the Add Engagement screen.

 

On the Add Engagement screen I have a EditForm that allows me to add an associated record in my 'Success Engagement' SharePoint list which has a field called 'Customer' which is a lookup value against my Customer SharePoint Listing.

 

I have two fields on an Edit Form:

SuccessEngagementDataCard:

  • A text field allowing entry of the Engagement name

CustomerDataCard:

  • Default: 'CMB:SelectCustomer' <- I'm setting the default to the selected customer in the dropdown

 

The form appears correctly but when I click on my 'Save' icon - SubmitForm(AddSuccessEngagementDetails)

 

I get the following error

PowerAppError03-DefaultDropdown.png

 

I can use the dropdown and select the customer correclty and it will save correctly.  So it appears that I'm not setting the default correctly on the dropdown, although it appears correctly when I view the form.

 

What is the correct way I should be defaulting the Customer?  Clearly I'm not doing it right and can't seem to find an example for this scenario in the documentation.

 

Thanks!

Tom.

Categories:
I have the same question (0)

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 914

#2
11manish Profile Picture

11manish 627

#3
Valantis Profile Picture

Valantis 598

Last 30 days Overall leaderboard