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 / Powerapps edit does no...
Power Apps
Answered

Powerapps edit does not retain previously chosen selection from combobox

(0) ShareShare
ReportReport
Posted on by 184

Hi, 

So I have a combo box (ComboBoxProduct) which has this formula. The source is sharepoint list by the way:

Items: Sort(Distinct(LookupList,Title),Result)

Default: blank

ComboBoxProduct is under data card ProductDataCard

ProductDataCard has this detail:

Update: ComboBoxProduct.Selected.Result

 

So after submitting it and if I need to edit the entry, the combobox resets to resets and I have to select the choice I have initially entered. Texts are retained so I do not have issues on that.

 

For pictures (see filename):

Edit - it shows product xxx, but when I click on the edit button

Edit1 - it goes back to like creating a new one. What I am expecting is that it should retain the product xxx selection

 

Thanks!

Edit.JPG
Edit1.JPG
Categories:
  • Verified answer
    v-qiaqi@microsoft.com Profile Picture
    Microsoft Employee on at

    Hi@CatPagulayan,

    Based on the issue that you mentioned, do you want to keep the ComboBox selected item within after submitting the form?

    Could you please share a bit more about your scenario:

    1. How you set the OnSelect property of the Edit Button?
    2. How you create your EditForm, from scratch with custom cards or based on the SP list?

    When it comes to setting ComboBox selected items, we always pay attention to the DefaultSelectedItems property.

    I have a test on my side which reproduces the issue you mentioned, please take a try as below.

    I create an App containing BrowseScreen with a BrowseGallery1, DetailScreen with a DeatilForm, EditScreen with an EditForm, via my SP list 'ListData'.

    Here is how I set the OnSelect property of the Edit Button:

     

    EditForm(EditForm1);Navigate(EditScreen1, ScreenTransition.None)

     

    The Title is a Text column by default in my SP list, I replace the corresponding TextInput control within the DataCard with a ComboBox. Set the Items property of the ComboBox as below:

     

    Sort(Distinct(ListData,Title),Result)

     

    Set the DefaultSelectedItems property of the ComboBox as below:

     

    {Value:ThisItem.Title}

     

    Best Regards,

    Qi

  • CatPagulayan Profile Picture
    184 on at

    Hi @v-qiaqi-msft ,

    Thanks very much! Worked like a charm!!

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

#2
Mohsin Ali Profile Picture

Mohsin Ali 356

#3
WarrenBelz Profile Picture

WarrenBelz 232 Most Valuable Professional

Last 30 days Overall leaderboard