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 / Combo box doesn't show...
Power Apps
Answered

Combo box doesn't show default value for my item in an edit form

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

I have a combo box that is blank by default. 

 

It shows a list of values that are already present in the dataset/table. If it is a new value, the user can enter a new one.

 

The screenshot below shows "Context"

raspberryPie_2-1700032285647.png

 

And this screenshot shows the list of existing contexts.

 

raspberryPie_1-1700032262756.png

 

The issue I'm having is that when I click on this edit icon to go to the edit page, the combo box doesn't default to the selected context. in this case, it should be pp instead of just blank.

raspberryPie_4-1700032373363.png

 

I have different buttons for creating a new item and editing an existing item.

 

Here are some of my codes:

DataCard:

Display name

DataSourceInfo([@testTable],DataSourceInfo.DisplayName,"context")

Default

ThisItem.context

Update

If(IsBlank(ComboBox2.Selected.Value),ComboBox2.SearchText,ComboBox2.Selected.Value)

MaxLength (i dont think this matters too much but i'll leave it here)

DataSourceInfo([@testTable], DataSourceInfo.MaxLength, "context")

 

ComboBox:

Items

Distinct(testTable.context,context)

InputTextPlaceholder

"Select or Enter Context"

 

How do i change my combo box/datacard to show blanks when creating and the existing value when editing?

Categories:
  • Verified answer
    v-mengmli-msft Profile Picture
    Microsoft Employee on at

    Hi @Anonymous ,

     

    Please check the DefaultSelectedItems of combo box.

    I assume that when you click the icon, the form will be edit, if you want to show "pp" in combo box, you can try this:

    DefaultSelectedItems of combo box:

    {Value:ThisItem.ColumnName}

     

     

    Best regards,

    Rimmon

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    thanks a lot

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

#2
WarrenBelz Profile Picture

WarrenBelz 188 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 120

Last 30 days Overall leaderboard