cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
bsakura
Regular Visitor

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
EricRegnier
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
EricRegnier
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
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

secondImage

Are Your Ready?

Test your skills now with the Cloud Skill Challenge.

secondImage

Demo Extravaganza is Back!

We are excited to announce that Demo Extravaganza for 2021 has started!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Top Solution Authors
Users online (128)