cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
New Member

Filter LookUp Field to Related Record From Previous LookUp Field

Hey, I was working on this form in model driven apps with two look up field which is hazard category and hazard sub category where i want to only show hazard subcategory records that are related to the hazard category. For example if i choose Hazard 1, i want to only show the record Sub Hazard 1.1. Is there any possible way to achieve that? Thanks in advance!

bsakura_0-1602652851313.png

 

1 ACCEPTED SOLUTION

Accepted Solutions
Super User II
Super User II

Hi @bsakura,

Yes it is possible out-of-the-box. Here are the steps:

  1. In make.powerapps.com, navigate to your Entity --> Forms and open the desired form
  2. Switch to Classic form designer by clicking the "Switch to Classic" button in the command bar
  3. Select the lookup field and click "Change Properties" in the ribbon
  4. Under the "Related Records Filtering", check "Only shows records where"
  5. Pick the Category lookup field  in the dropdown then in "Contains" the Category related field
    2020-10-14_20-51-54.png
  6. I would uncheck "User can turn off filter" so users can't turn off and pick un related sub-categories
  7. Click OK, Save All and Publish

 

Note: a small caveat is that it expects the main Category to be selected before the sub-category.

 

Hope this helps!

View solution in original post

2 REPLIES 2
Super User II
Super User II

Hi @bsakura,

Yes it is possible out-of-the-box. Here are the steps:

  1. In make.powerapps.com, navigate to your Entity --> Forms and open the desired form
  2. Switch to Classic form designer by clicking the "Switch to Classic" button in the command bar
  3. Select the lookup field and click "Change Properties" in the ribbon
  4. Under the "Related Records Filtering", check "Only shows records where"
  5. Pick the Category lookup field  in the dropdown then in "Contains" the Category related field
    2020-10-14_20-51-54.png
  6. I would uncheck "User can turn off filter" so users can't turn off and pick un related sub-categories
  7. Click OK, Save All and Publish

 

Note: a small caveat is that it expects the main Category to be selected before the sub-category.

 

Hope this helps!

View solution in original post

Dear @EricRegnier , Thank you for your answer, that resolved my question!

Helpful resources

Announcements
News & Announcements

Community Blog

Stay up tp date on the latest blogs and activities in the community News & Announcements.

Power Apps Community Call

Power Apps Community Call- January

Mark your calendars and join us for the next Power Apps Community Call on January 20th, 8a PST

PP Bootcamp Carousel

Global Power Platform Bootcamp

Dive into the Power Platform stack with hands-on sessions and labs, virtually delivered to you by experts and community leaders.

secondImage

Power Platform Community Conference On Demand

Watch Nick Doelman's session from the 2020 Power Platform Community Conference on demand!

Users online (6,782)