Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building 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:

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

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Power Apps - Building Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 110 Most Valuable Professional

#2
MS.Ragavendar Profile Picture

MS.Ragavendar 77

#3
stampcoin Profile Picture

stampcoin 52

Overall leaderboard