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 / Set ComboBox Default B...
Power Apps
Answered

Set ComboBox Default Based on Label Content

(1) ShareShare
ReportReport
Posted on by 5,325 Super User 2025 Season 2
I have Button1 (Add Photos).

I have Label1 (Job Type).

I have Gallery1 (Consumables), in which is ComboBox1 (Consumable_Description).

I am using the following to filter ComboBox1.
 
Filter(colConsumableChoiceCollection,
   
Consumable_Location = JS_Location_Dropdown.Selected.Project_Name
   
&&
   !
(Consumable_Description in colConsumablePicked.Consumable_Description))

Goal:
If Label1 defaults to "Drop", "Storm Work", or "Service Call" ComboBox1
should default to "Fiber Waste" (which is in the ComboBox list of items),
else ComboBox1 should default to Blank() and show the list.

Currently, as a test, ComboBox1 'DefaultSelectedItems' has ["Fiber Waste"],
however it is not appear in the box.

What am I missing?
Categories:
I have the same question (0)
  • Verified answer
    WarrenBelz Profile Picture
    153,084 Most Valuable Professional on at
    What is missing here is the actual field displayed in the Combo Box - I will use JobType in the example below - change if that is incorrect. DefaultSelectedItems should be
    {
       JobType:
       If(
          Label1.Text in ["Drop", "Storm Work", "Service Call"],
          "Fiber Waste",
          Blank()
       )
    }
    
     
    Please click Does this answer your question if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it a Like.
    MVP (Business Applications)    Visit my blog Practical Power Apps    LinkedIn   
  • Phineas Profile Picture
    5,325 Super User 2025 Season 2 on at
    Yes, sir.

    I believe that did it.

    Thank you!

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