web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / ComboBox Properties - ...
Power Apps
Answered

ComboBox Properties - Not understanding the Default and DefaultSelectedItems

(0) ShareShare
ReportReport
Posted on by 16

Making a canvas app using a Dataverse table. I have a combobox that allows for a user to pick a user-ID for a report form. It will automatically populate their basic information in other fields. After they make a submission of a report, I need it to default to the employee ID of the item selected in the gallery (for display specifically).

 

The DATACARD properties:

 

Items: 'PIT Operator Logs'
Display Fields: ["crfb2_empid", "crfb2_lastname"]
SearchFields: ["crfb2_empid"]
Default: ThisItem.'Emp ID"
Update: combo_ID.Selected.'Emp ID'

 

 

The COMBOBOX properties:

 

Default: ThisItem
DefaultSelectedItems: Thisitem

 

 

Nothing populates the field on display. And whatever I've tried has been useless. I removed the Employee definition for the Datacard Update property, but it gave me an error.

As for the combo box, it does not matter what I do but if I add anything such as 'Emp ID', it gives an error.

 

Any help would be greatly appreciated. Thank you.

I have the same question (0)
  • ivan_apps Profile Picture
    2,187 Moderator on at

    Well for combobox the Default property is deprecated so don’t use that. DefaultSelectedItems is what you want to use: https://learn.microsoft.com/en-us/power-apps/maker/canvas-apps/controls/control-combo-box

     

    It also has to be an array since it could be set to multiple values.

    ex: [“item1”] or [ThisItem] or [ThisItem.EmployeeId]

     

    give that a shot and see it you get something to display

     

  • heiavieh Profile Picture
    16 on at

    When I input "ThisItem.'Emp ID'", I get an "Expected Table value" error. The employee ID is a Text value field.

  • Verified answer
    ivan_apps Profile Picture
    2,187 Moderator on at

    ensure you use the brackets "[ ]" to create a table object.

    you can also use the Table() function.

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 739 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard