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 / Button A = Combo Box A...
Power Apps
Answered

Button A = Combo Box A visible, & Button B = Combo Box B Visible, then Text Input = Whatever was selected of either C.B. A or B

(0) ShareShare
ReportReport
Posted on by 4

Hi,

 

I'm needing a set up to do the following:

 

Either button A or B can be selected, which will show Combo Box A or B (respectively). (The two combo boxes are pulling from two different columns of a data table.)

 

I then need a Text Input to load either the selected data from Combo Box A or B. 

 

Additionally, is there a way for a Combo Box or similar to search from two sets of data based on input?

 

@Amik I've tried working based off your solution to a topic in June but no luck (Solved: Container Pop-Up and Additional Buttons - Power Platform Community (microsoft.com))

 

Any help would be amazing!

Categories:
I have the same question (0)
  • v-qiaqi@microsoft.com Profile Picture
    Microsoft Employee on at

    Hi @Deme_trius,

    Do you want to:

    1). Click a button to make the representive combobox visible?

    2). Filter items in ComboBox based on TextInput text?

     

    Could you please tell me that if the ComboBoxB will be visible as well if ComboBoxA is visible?

    Could it be possible that you want to make both of two ComboBoxes visible at the same time?

     

    I think the issue in your scenario should be an either/or question, if so, please try the following steps:

    1). Set the OnSelect property of buttonA:

    Set(varA,true);Set(varB,false)

    Set the ComboBoxA Visible property:

    varA

    Set the ComboBoxA Items property:

    If(varA,Filter(list1,TextInput12.Text in Title))

    2). Set the OnSelect property of buttonB

    Set(varB,true);Set(varA,false)

    Set the ComboBoxB Visible property:

    varB

    Set the ComboBoxB Items property:

    If(varB,Filter(list2,TextInput12.Text in Name))​

     

     

     

  • Deme_trius Profile Picture
    4 on at

    Hi Qi,

     

    Thanks, this has helped me get a start on the foundations of this.

     

    Essentially - this app is used for vehicle identification - where people can either search via a company stock number (Option A) or Vehicle Identification Number (Option B). 

     

    As Data needs to be accurate (the vehicle needs to actually exist), a combo box is being used to ensure a valid selection is made. 

     

    So to answer your question, it is '1). Click a button to make the representive combobox visible?'. 

     

    What I then need is a third display only field (always visible) that will populate data from my table based on what was selected in either combo box.

     

    For example:

     

    My data looks like this:

    VEHICLESTOCKVEHICLE IDENTIFICATIONCOLOUR
    TruckStock908VIN123Red
    CarStock906VIN345Blue

     

    Option A chooses from Stock, and B from Vehicle Identification, based on what information the user has.

     

    User selects VEHICLE IDENTIFICATION (Option B Button) and selects data: 'VIN123'

     

    I then need my third display only and always visible field to mirror what has been selected in either ComboBox A or ComboBox B, as that is the data field I will pull through to my report once the user has completed all other fields.

     

     

    Hope this makes sense!

     

     

  • Verified answer
    v-qiaqi@microsoft.com Profile Picture
    Microsoft Employee on at

    Hi @Deme_trius,

    I assume that you set the ComboBoxA Items property:

    If(varA,list.'VEHICLE IDENTIFICATION')

     

    Well, just set the TextInput Default property as:

    If(varA,ComboBoxA.Selected.STOCK,varB,ComboBoxB.Selected.'VEHICLE IDENTIFICATION')

     

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 June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 326 Most Valuable Professional

#2
11manish Profile Picture

11manish 168

#3
sannavajjala87 Profile Picture

sannavajjala87 75 Super User 2026 Season 1

Last 30 days Overall leaderboard