cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
MPayne-94
Helper I
Helper I

PowerApp Custom DropDown Card Resetting in Edit

I am creating a custom PowerApp form for a Share Point List. This form is used to create new items and to edit existing items.

 

I have a custom drop down field that pulls from a second SharePoint list that I am having issues with. I am pulling a Supplier name and have them sorted to be A-Z and defaults with the first alphabetical supplier.

 

When the SharePoint item is being edited it is changing the Supplier name to the Default Supplier not the selected Supplier. 

 

What is the work around on this?

Showing how the items look in the SharePoint List with correct Supplier HighlightedShowing how the items look in the SharePoint List with correct Supplier HighlightedShowing Form in edit that  highlights incorrect Supplier shownShowing Form in edit that highlights incorrect Supplier shownPowerApp Studio screen that shows the edit screen and wrong supplier in form but correct Supplier in the Default box on the right sidePowerApp Studio screen that shows the edit screen and wrong supplier in form but correct Supplier in the Default box on the right side

1 ACCEPTED SOLUTION

Accepted Solutions

Hi @MPayne-94 ,

Currently, I could not reproduce your issue on my side. Please consider set the Items property of the Corp Supplier Name dropdown box to following:

Distinct('Supplier Assignments', Title)         /* <-- I assume that you want to displat Title column value from 'Supplier Assignments' within this ComboBox*/

Set the Default proprety of the Corp Supplier Name dropdown box to following:

SharePointIntegration.Selected.'Supplier Name'

or

ThisItem.'Supplier Name'

 

Please take a try with above solution, then check if the issue is solved.

 

Best regards,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

4 REPLIES 4
Anonymous
Not applicable

Hi @MPayne-94 

 

Set the default value of the dropdown to 

 

ThisItem.SupplierName.Value . // check the field name

 

 

Thanks.

v-xida-msft
Community Support
Community Support

Hi @MPayne-94 ,

Could you please share a bit more about the 'Supplier Name' column in your SP List? Is it a Single text type column or a Choice type column?

Could you please share a bit more about the formula you typed within the Items property of Dropdown box?

 

If the 'Supplier Name' column is a Single text type column in your SP list:

Set the Default proprety of the Supplier Name Dropdown box to following:

SharePointIntegration.Selected.'Supplier Name'

or

ThisItem.'Supplier Name'

2. If the 'Supplier Name' column is a Choice type column in your SP list:

Set the Default proprety of the Supplier Name Dropdown box to following:

SharePointIntegration.Selected.'Supplier Name'.Value

or

ThisItem.'Supplier Name'.Value

set the Update property of the Corp Supplier Name data card to following:

{
   Value: SupplierNameDropdownBox.Selected.Value
}

Please take a try with above solution, check if the issue is solved.

 

Best regards,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

The Supplier Name column is single text.

 

The formula I am using in Items is Sort('Supplier Assignments',Title)

 

The fixes below havent seemed to work

Hi @MPayne-94 ,

Currently, I could not reproduce your issue on my side. Please consider set the Items property of the Corp Supplier Name dropdown box to following:

Distinct('Supplier Assignments', Title)         /* <-- I assume that you want to displat Title column value from 'Supplier Assignments' within this ComboBox*/

Set the Default proprety of the Corp Supplier Name dropdown box to following:

SharePointIntegration.Selected.'Supplier Name'

or

ThisItem.'Supplier Name'

 

Please take a try with above solution, then check if the issue is solved.

 

Best regards,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
PA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.

Microsoft Build 768x460.png

Microsoft Build is May 24-26. Have you registered yet?

Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.

May UG Leader Call Carousel 768x460.png

What difference can a User Group make for you?

At the monthly call, connect with other leaders and find out how community makes your experience even better.

Top Solution Authors
Top Kudoed Authors
Users online (2,377)