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 / PowerApps dependent mu...
Power Apps
Answered

PowerApps dependent multiselect combobox and sharepoint list not populating selected items

(0) ShareShare
ReportReport
Posted on by 84

GM, I'm very new to SharePoint and PowerApps and I've been working on a form for several weeks. I have been able to work through a lot of issues, but there are areas that I don't understand what's happening even though I created it. I've added some dummy data in the lists fyi.  Hoping for some feedback. 

 

1. I can't figure out how I was able to get the 2nd cmx to filter on the correct field because it's not pointing directly to it in any of my formulas. 

2. The form list called "recognition nomination form' isn't populating the chosen pin categories or the pin names. Everything you see is what I've been able to do through watching tons of videos and lots of trial and error.

 

ksullivan2_0-1661179703069.png

ksullivan2_1-1661180052039.png

ksullivan2_2-1661180489615.png

ksullivan2_3-1661180605266.png

ksullivan2_4-1661180660107.png

 

 

 

 

 

 

 

Categories:
I have the same question (0)
  • v-jefferni Profile Picture
    Microsoft Employee on at

    Hi @ksullivan2 ,

     

    Could you please share more details about your scenario? What type are the two columns in the recognition nomination form list? It seems like both the two columns are LookUp columns and allows multiple selections. If so, please try below steps:

    1. Check Update of PinCategory Data Card if it is:

    cbxPinCategories.SelectedItems)

     

    2.Change = to in operator in the formula of cbxPinSelection Combo box. 

    Filter('Recognition Pin Names', 'Categories Test' in cmbCategories.SelectedItems.Value)

     

    3.  Check Update of PinSelection Data Card:

    Filter(Choices('Recognition Program Nomination Form'.'Pin Selections'), Value in cmbPinSelections.SelectedItems.Title)

     

    By the way, it's too difficult to type the formula without yours in text, screenshot is not very clear. Next time please consider post the question with text formulas and this will help others to understand more clearly and easier to help.

     

    Best regards,

  • ksullivan2 Profile Picture
    84 on at

    Hi and thanks for your reply, I didn't realize the images were fuzzy, I'll add more info here. 

    1. Important to note: The update property is nowhere to be found on the PinCategories datacard and the PinSelection datacard. I found that this was an issue, but wasn't sure how to resolve it. 

    2. Pin Categories points to a list called Recognition Pin Names and is a lookup column. PinSelection points to the same list and points to a text field called 'Categories test', but I have it displaying the field I needed by changing the field layout. This was the only way I could get it to work correctly. 

    3. I was able to get the PinSelection to Filter on PinCategories by adding the code below: 

    Filter('Recognition Pin Names', 'Categories Test' in cbxPinCategories.SelectedItems.Value)

     

    I've tried all sorts of formulas for the OnSuccess of the form and OnSelect of cbx but nothing is even coming close to doing what I need it to do. Here are a few examples of what I've tried. 

     

    Collect(

        Collection1,

        SharePointForm1.Updates

    );

    Collect(

        colPinCategories,

        {'Pin Categories 2': colPinCategories.Categories}

    )

     

    Added to OnSelectCbxPinCatogory

    Patch(

        'Recognition Program Nomination Form',

        Defaults('Recognition Program Nomination Form'),

        {'Pin Category': cbxPinCategories.SelectedItems.Value}

    )

     

    Deleted onselect and added to onsuccess

    Collect(

        Collection1,

        SharePointForm1.Updates);

     

    Patch(

        'Recognition Program Nomination Form',

        Defaults('Recognition Program Nomination Form'),

        {'Pin Category': cbxPinCategories.SelectedItems.Value}

    )

     

     

    Added

    Collect(Collection1, {'Pin Category':cbxPinCategories.SelectedItems.Value})

    Changed to:

    ollect(Collection1, {'Pin Category':cbxPinCategories.SelectedItems })

     

     

     

    Added to OnSuccess:

    Collect(

        Collection1,

        SharePointForm1.Updates

    );

    Collect(

        Collection1,

        {'Pin Category': cbxPinCategories.SelectedItems.Value}

    )

     

    Collect(

        Collection1,

        SharePointForm1.Updates

    );

    Collect(

        Collection1,

        {'Pin Categories': cbxPinCategories.SelectedItems.Value}

    )

     

    Collect(

        Collection1,

        SharePointForm1.Updates

    );

    Collect(

        Collection1,

        {'Pin Categories 2': cbxPinCategories.SelectedItems.Value}

    )

  • v-jefferni Profile Picture
    Microsoft Employee on at

    Hi @ksullivan2 ,

     

    If there is no Update property, then they are custom cards that you added before than generated by the form automatically. So if you are using SubmitForm function, this will cause the issue that data within these Cards would not be updated to the source. Please try and add the Data Cards of the two columns by selecting the fields in the Form's property and then customize the system cards, following my steps.

     

    Best regards,

  • ksullivan2 Profile Picture
    84 on at

    This makes so much sense and I wondered if that was the issue. For future reference, what's the point of adding a custom card if you can't get it to update in the source?

  • v-jefferni Profile Picture
    Microsoft Employee on at

    Hi @ksullivan2 ,

     

    Edit forms can not only help edit/update data in data source, but also help display the data in a modern way because of some built-in features like scrollable. So if there is some data that's not directly in the data source but needs to be shown to users, you can use custom cards. Besides, sometimes we will use the Patch function to update from a button out of forms as well, this function can reference the controls within custom cards.

     

    Best regards,

  • ksullivan2 Profile Picture
    84 on at

    Hi Again, Here's my changes and I hope it's more clear:

     

    List 1: 

    List Name: Pin Categories

    Column: T

    Title - Text

    Exp: Location, Milestone, Safety, Quality

     

    List 2:

    List Name: 'Recognition Pin Names'

    Columns:

    Column 1: Title:  - Text - Pin Names

    Exp.:  5 years, 10 years, Dubai, England, 

    Column 2:  Categories - Lookup to 'Pin Categories' List

    Column 3: Categories Text Column - Single line of Text - I created this because I couldn't get cmbPinsRequested to filter the 'Pin Names' column 

     

    List 3:

    List Name: 'Recognition Nomination'

    Columns:

    Column 1: Pin Categories: Lookup to 'Recognition Pin Names' 

    Column 2: Pins Requested: Lookup to 'Recognition Pin Names'

     

    In Form:

    Pin Categories_DataCard1

    cmbPinCategories: multiselect 

    Items: Choices([@'Recognition Pin Names'].Categories)

    OnSelect: ClearCollect(colPinCategories, cmbPinCategories.SelectedItems.Value)

     

    PinsRequested_DataCard4

    cmbPinsRequested: multiselect

    Items: Filter('Recognition Pin Names', 'Categories Text Column' in cmbPinCategories.SelectedItems.Value)

    Update: cmbPinsRequested.SelectedItems

     

    With these in place, everything is filtering correctly but the selections are still not being published back to List 3: 'Recognition Nomination'. I've tried your suggestions with no luck so far. Thanks for helping a newbie. 

     

  • WarrenBelz Profile Picture
    154,924 Most Valuable Professional on at

    @ksullivan2 ,

    To answer your question on Custom Cards, they are useful for things you do not need to update such as read-only labels, spacing in a form and images/logos etc.

  • ksullivan2 Profile Picture
    84 on at

    @WarrenBelz 

    Hi there, I've been reading your blog a lot and trying various suggestions you've made specifically on this post. https://www.practicalpowerapps.com/dynamic/multiselectcheckboxes/ I've even renamed most of my form items from your suggestions on the blog. I need to filter the cbPinNames by category and have them populate on List 2. Could you please offer some additional help by chance? 

    ksullivan2_0-1663680701062.png

    ksullivan2_1-1663680800616.png

    Here it's populating but not filtering. 

     

     

     

    List 1 is called Pin Names:
    Column 1: Title: Pin names - text
    Column 2: Pin Category - text

    List 2 is called Nomination form:
    Pins Requested: lookup to Pin Names in List 1
    Pin Category: lookup to Pin Category in List 1
    OnSelect: UpdateContext({varItem: ThisItem}); ClearCollect(colPin, varItem.'Pin Category')

     

    The form has two comboboxes:


    cbPinCategory:
    Default: ThisItem.'Pin Category'
    Update: cbPinCategory.SelectedItems
    DisplayFields: ["Value"]
    Items: Choices([@'Recognition Pin Nomination Form'].'Pin Category')
    Default DelectedItems: ThisItem.'Pin Category'

     

    cbPinsRequested:
    Default: ThisItem.'Pins Requested'
    Update: cbPinsRequested.SelectedItems
    Display: ["Value"]
    Item: Choices([@'Recognition Pin Nomination Form'].'Pins Requested')
    DefaultSelectedItems: Tried so many formulas I can't count. 

     

    I've been able to get the cb to filter as shown in my original post, but that wasn't a great solution and it won't populate back to list 2. 

     

     

  • AaronKnox Profile Picture
    514 Super User 2024 Season 1 on at

    At a glance, using Collect/ClearCollect with OnSelect is a bad pattern.  You probably don't need the collection.  You can view all the selected items, as a table, in the SelectedItems property of the combo box control:

    Capture - Copy.PNG

     

  • ksullivan2 Profile Picture
    84 on at

    @AaronKnox I agree, but I'm just trying as many possible solutions to this as possible, with no luck. The collection was just one more thing I've tried. I can see the id and value in the items property of cbPinCategory, but I can't figure out how to get the id from that and match it up to pull the correlating values from the another column. 

    ksullivan2_0-1663687063990.png

    I created several different columns on Pin names list to see if that helped with filtering issues with no luck. If you find a post that can help, please tag me. 

    ksullivan2_1-1663687136862.png

     

     

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!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 534

#2
WarrenBelz Profile Picture

WarrenBelz 416 Most Valuable Professional

#3
Valantis Profile Picture

Valantis 306

Last 30 days Overall leaderboard