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 / Dynamically building t...
Power Apps
Answered

Dynamically building tab List from multiselect combobox

(0) ShareShare
ReportReport
Posted on by 1,088
I have a multiselect combo box with various options for the user to choose from, each option has different questions I want them to answer.
 
I'd like to use the tab list control and put each different type of question on a different tab.
 
I added an on change expression to the combobox:
 
ClearCollect(
    TabCollection, 
    {Tab: """1. Change Details"""} // Always include this base tab
);
// Add entries dynamically based on selection
If(
    "Payroll (Worksite Address, PTO Days, New 1099 Sponsor, Start Date, Expense Rates)" in ForAll(ComboboxCanvas1.SelectedItems, Value),
    Collect(TabCollection, {Tab: """2. Payroll"""})
);
If(
    "Billing (PO Number, CRF Project, Billing Profile)" in ForAll(ComboboxCanvas1.SelectedItems, Value),
    Collect(TabCollection, {Tab: """3. Billing"""})
);
 
 
The collection gets built as expected.
 
Then for the items property ont he tab list I have:
 
[Concat(TabCollection, Tab, ",")]
 
 
It accepts this, but the problem is it only creates one tab.
 
I've tied a few other variations of this too...  so instead of putting the double quote in the collection i tried adding in the tab list:
 
 
"[" & Concat(TabCollection, """" & Tab & """", ",") & "]"
 
But this kept failing saying it expected a table value.
 
I think it fails because it wants to see the [ and ] in there not the "[" and "]" if that makes sense.
 
When I put just this in a label it shows correctly:
Concat(TabCollection, """" & Tab & """", ",")
 
 
So does anyone see what I'm doing wrong here?
 
Thanks,
Terry
 
 
 
 
 
 
 
 
 
 
 
Categories:
I have the same question (0)
  • ronaldwalcott Profile Picture
    3,847 Moderator on at
    Concat creates a string while the Items property of the Tablist accepts a single column table which you can create in your If statement using a column called Value
    Collect(TabCollectionNames, {Value: "2. Payroll"}
    Set the items property of the tablist to TabCollectionNames
  • Verified answer
    SwatiSTW Profile Picture
    807 Super User 2026 Season 1 on at
    What you doing wrong is trying to turn the collection into a concatenated string for the Items property of the tab list control. The TabList control expects a table (a collection with rows and columns), not a string.
     
    1. In the OnChange property of your combo box, use the following code to build the tab collection:
    ClearCollect(
        TabCollection, 
        {Tab: "1. Change Details"} 
    );
    If(
        "Payroll (Worksite Address, PTO Days, New 1099 Sponsor, Start Date, Expense Rates)" in ForAll(ComboboxCanvas1.SelectedItems, Value),
        Collect(TabCollection, {Tab: "2. Payroll"})
    );
    If(
        "Billing (PO Number, CRF Project, Billing Profile)" in ForAll(ComboboxCanvas1.SelectedItems, Value),
        Collect(TabCollection, {Tab: "3. Billing"})
    );
     
    2. For the Items property of your tab list control, simply set it to:
    TabCollection
     
    3. The tab list will use the Tab field from the TabCollection to display the tab names. Ensure you don’t try to concatenate the collection into a string.
     
    4. To debug or check the collection, add a label and set its Text property to
    Concat(TabCollection, Tab, ", ")

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 93 Most Valuable Professional

#2
Haque Profile Picture

Haque 81

#3
Valantis Profile Picture

Valantis 49

Last 30 days Overall leaderboard