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 / Edit Screen | Combo Bo...
Power Apps
Answered

Edit Screen | Combo Box defaults to first item of the list instead of previously selected item

(0) ShareShare
ReportReport
Posted on by 69

Hey Guys, 

I need a little bit of guidance here. I created a ticketing app of sorts. Here I have the following screens.

 

- New Ticket Submission (new form)

- Ticket Review Screen ( browser/gallery screen)

- Ticket Edit Screen ( Edit Form)

- Success screen

 

The issue is when I go into Edit screen for an existing ticket, my combo box defaults to the first item of table and not the one initially searched and selected at the time of ticket submission. Screen shots attached. 

safifaruqi_0-1620151593053.png

safifaruqi_1-1620151631386.png

 

How do I set the default property of my combo box in the edit screen to default to the originally selected item at the time of ticket submission as referenced in the screenshot. 

 

Thanks for the help guys. 

 

Categories:
  • RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @safifaruqi 

    You cannot set the Default property of a Combobox.  A Combobox uses records for its selections, so you must provide a table of record compatible with the Items property of the combobox to the DefaultSelectedItems (DSI) property of the control.

     

    So,

    - what kind of column is "AFFECTED PRODUCT DESCRIPTION" in your list?

    - what is the Items property of the combobox?

    - what is the Default property of the DataCard your combobox is in?

    - what is the Update property of the DataCard your combobox is in?

  • Sid_Jafri Profile Picture
    478 on at

    @safifaruqi 

     

    Default of form datacard should be ThisItem.<FieldName>

  • safifaruqi Profile Picture
    69 on at

    @RandyHayes Thank you for your reply. 

     

    - what kind of column is "AFFECTED PRODUCT DESCRIPTION" in your list?

       Text column

    - what is the Items property of the combobox?

    SKU_Table.Item_Description (excel table, onedrive connection)

    - what is the Default property of the DataCard your combobox is in?

    ThisItem.'AFFECTED PRODUCT DESCRIPTION'

    - what is the Update property of the DataCard your combobox is in?

    Combo_ProductDescription_1.Selected.Item_Description

     

    Hope this helps.

  • safifaruqi Profile Picture
    69 on at

    @Sid_Jafri 

     

    Thank you for the reply sid, the default for the datacard is 

    safifaruqi_0-1620152911769.png

     

     

  • Sid_Jafri Profile Picture
    478 on at

    @safifaruqi 

     

    Add DefaultSelectedItems of ComboBox 

    DefaultSelectedItems = ThisItem

     

    Please Thumbs up if my post helped you solve your issue.

  • safifaruqi Profile Picture
    69 on at

    this blanks out the combobox

     

    safifaruqi_0-1620153459303.png

     

  • Sid_Jafri Profile Picture
    478 on at

    If you will use Edit form then it shouldn't be. Newform will blank that out. Are you experiencing same issue in Edit form?

     

    Please Thumbs up if my post helped you solve your issue.

  • Verified answer
    RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @safifaruqi 

    Your DefaultSelectedItems property of the combobox should then be:

    {Item_Description: Parent.Default}

    You need to match records in Comboboxes.  Your Items property shows that you have a table with a single column called Item_Description.  So the DSI property should reflect that in order for a match to occur.

     

    Unless you need searching or multiple selections (which in this case you don't appear to), you really should work with a Dropdown rather than a combobox unless you have a good handle on record matching.

    AND, the EditForm already accommodates this.  When you add a Text field to an Edit form, you immediately have the option to change the Control Type.  You can choose "Allowed Values" as the control type and PowerApps will automatically add a Dropdown and have all of the properties set the way they are needed.  Once you change to that control type, your datacard will now have a new property called AllowedValues - it is there that you would put in SKU_Table.Item_Description 

    NOTE: you cannot change the control type once you have unlocked the datacard.  You would need to remove the field from your form and add it back in, then you will have this option.

     

    @Sid_Jafri setting it to the entire underlying record (ThisItem) will not be effective - it needs to be a record based on the column schema of the Items property of the combobox.  Also, there is no difference between and EditForm and a NewForm - in fact, there is no such control as a NewForm.

     

  • safifaruqi Profile Picture
    69 on at

    it is the edit form as per my understanding and with DefaultSelectedItems = ThisItem I am getting blank. 

  • Sid_Jafri Profile Picture
    478 on at

    Could you please share the screenshot of Defaultselecteditems of combo box and Default of Datacard?

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

#2
WarrenBelz Profile Picture

WarrenBelz 207 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 169

Last 30 days Overall leaderboard