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 / Limit Items in Dropdow...
Power Apps
Answered

Limit Items in Dropdown #2 Per Selected Item in DD #1 (Forms)

(0) ShareShare
ReportReport
Posted on by 157

I am working on a canvas app with SharePoint list as my data source. I have dropdown menus in the context of a form that are SP choice columns.  I'd like to limit the items in the Location dropdown based on the selection in the Area dropdown.  When "Rail" is selected, Area dropdown will only display Rail Pump 1, Rail Pump 2, etc. Likewise, when "Truck" is selected, Area dropdown will only display Truck Door 1, Truck Door 2, etc.

// Area DD ITEMS Property
Choices([@'Strainer Logs'].Area)

// Location DD ITEMS Property
Choices([@'Strainer Logs'].Location)
  1. Area dropdown control is DataCardValue16
  2. Location dropdown control is DataCardValue17 

    forum dependent dd menus.jpg
    Any recommendations are appreciated.
Categories:
I have the same question (0)
  • Verified answer
    LaurensM Profile Picture
    12,516 Moderator on at

    Hi @cm2112,

     

    Is text the only link between location and area? We could check whether the locations contain the value of the dropdown above:

    //Items property of locations dropdown
    Filter(
     Choices([@'Strainer Logs'].Location),
     DataCardValue16.Selected.Value in Value
    )

     

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

    Thanks!

  • cm2112 Profile Picture
    157 on at

    Thank you @LaurensM - I really appreciate your response. 
    The new code produced the following results:
    - When Area = Rail, Rail Pump 1 selected in Location DD.
    - When Area = Truck, Truck Door 1 selected in Location DD.
    forum dependent dd menus 2.jpg
    What I'm Looking For:
    When Area DD selection = "Rail", I need to limit the items in the in Location DD so that only items that start with "Rail" are listed (i.e., Truck items are hidden).  And vice-versa for Truck.  Any additional insight is appreciated. 

  • LaurensM Profile Picture
    12,516 Moderator on at

    Hi @cm2112,

     

    My code should take care of that requirement. Did you write it in the Items property of the dropdown?

    When written there, the Items within the dropdown will be  filtered based on the selection of the previous dropdown.

     

    Normally this should not affect the DefaultSelectedItems property - did you change this property by any chance?

     

    I hope this helps!

  • cm2112 Profile Picture
    157 on at

    @LaurensM - My bad.  I had it in the DefaultSelectedItems. It works great now. Thanks again for the solution!

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
Haque Profile Picture

Haque 70

#2
WarrenBelz Profile Picture

WarrenBelz 64 Most Valuable Professional

#3
Kalathiya Profile Picture

Kalathiya 36 Super User 2026 Season 1

Last 30 days Overall leaderboard