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 Apps
Unanswered

Combobox Default

(0) ShareShare
ReportReport
Posted on by 230

Hi Folks, 

 

I'm trying to configure a combobox. The user should have two options:

- either to select a value from the dropdown (items come from a connected Excel table), however if

- the user has a barcode, the value is stored in a variable. I then set the combobox default value to that variable value. But the problem is that nothing happens, except that now the dropdown contains only 1 selectable value (the first one from the connected table)

 

Any ideas what I'm missing here?

Categories:
  • JayMagness Profile Picture
    1,663 on at

    HI,

     

    I think I would take a step out. Load the barcode control then set the drop down default to the Barcode Value. May have to put an if statement in the default value statement to where if no barcode then blank.

     

    Jay

  • v-bofeng-msft Profile Picture
    Microsoft Employee on at

    Hi @TJO :

    Do you want to set a Combo box control's default options?

    First of all, the following points need to be noted:

    • If you need to set a Combo box control's default options, you need to set its DefaultSelectedItems property.
    • The items selected in DefaultSelectedItems must be records in the Combo box control's items property.

    So if the barcode is not in the data source of the combo box, then you need to reconstruct the combo box’s items property.

    Second,If the problem cannot be solved, could you provide more detailed information?

    • The data structure of the data source.(table name,field name,date type)
    • The combo box's items property and DefaultSelectedItems property.
    • What is the barcode?
    • What is the variable?

    Best Regards,

    Bof

     

  • v-bofeng-msft Profile Picture
    Microsoft Employee on at

    Hi @TJO :

    Is your problem solved? Do you still need help?

    If you have found a solution, could you mark it as a solution so that more people can see it.

    Best Regards,

    Bof

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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 409 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 328

#3
WarrenBelz Profile Picture

WarrenBelz 252 Most Valuable Professional

Last 30 days Overall leaderboard