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 / Dynamically populate a...
Power Apps
Unanswered

Dynamically populate a combobox

(0) ShareShare
ReportReport
Posted on by 321

Hi, 

 

I have an App, pointing to a SharePoint List.

 

On the App side, what I want to achieve is dynamically populate the choices in a combobox based on a selection in another combobox.

 

To help understand, here is my list

JimboSey_0-1677163135556.png


combobox1 will contain the two choices from the 'Strand' column, so Power Platform team (PPT) and Learning Systems Team (PST)

combobox2 will contain the contents of the 'Button' Name' column. 

So what I want it work like is, if the user selects 'Power Platform Team' at combobox1, then combobox2 should dynamically populate to only show 'Added to Workplans' and 'Rejected' as choices, and if 'Learning Systems Team (LST)' is selected at combobox1, it only shows the choices 'Under review' and 'More info required'.

Any help much appreciated. 

 

Thanks

 

Categories:
I have the same question (0)
  • Verified answer
    LaurensM Profile Picture
    12,516 Moderator on at
    //Change Listname to your actual list name LISTNAME, //If nothing is selected show everything, else filter based on selection IsBlank(ComboBox1.Selected) || Strand.Value = ComboBox1.Selected.Value ).'Button Name'

     Adjust the code to your specific case where necessary.

     

    This should allow you to dynamically filter the second combobox options.

     

    If this solves your question, would you be so kind as to accept it as a solution.

    Thanks!

    Hi @JimboSey,

     

    This is certainly possible. Let's look at the solution step by step:

     

    (1) Create combobox1 and set the items property to:

    Choices(LISTNAME.Strand)

     

    (2) Create combobox 2 and use the following formula in the items property:

    Filter(
                          
  • JimboSey Profile Picture
    321 on at

    This worked perfect, exactly as I needed it. 

     

    I had managed to get it working to a certain extent with the following;

    Filter(LISTNAME, Strand.Value = ComboBox1.Selected.Value).'Button Name'

     

    But your code allows for all the choices to be seen if nothing selected at ComboBox1.

     

    Thanks again 🙂

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 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard