---
title: "Restrict a Field’s Choices Using Another Field Using Quality Inspector"
app: "Quality Inspector"
section: "Set up"
last_updated: "2025-09-22"
url: "https://insight-works.com/kb/quality-inspector/restrict-a-fields-choices-using-another-field-using-quality-inspector/"
---

# Restrict a Field’s Choices Using Another Field Using Quality Inspector

The following article is an example of how to have fields depend on each other. This example has you configure two fields: a field displaying available locations, and a field displaying available bins within the first field’s chosen location. For your use, modify the example data with your data.

1. Navigate to _Test Templates_ in Business Central.
2. Select **+New** and modify the following fields:

   - Code: LOOKUPEXAMPLE
   - Description: lookup example
3. Select **Add Field(s) To This Template** and select **Next**.
4. Input the following:

   - Description: location
   - _What type of data is it?_: A choice from a list
5. Select **Next**.
6. Enable _An existing table_.
7. Modify the following fields as needed:

   - Which Table?: Location
   - Which Field?: Code
   - Any Filter?: Code / SILVER|WHITE, and select **OK**.
8. Select **Finish**.
9. Select **Add Field(s) To This Template** and select **Next**.
10. Input the following:

   - Description: Bin
   - _What type of data is it?_: A choice from a list
11. Select **Next**.
12. Enable _An existing table_.
13. Modify the following fields as needed:

   - Which Table?: Bin
   - Which Field?: Code
   - Any Filter?: Location Code / [location], and select **OK**
14. Select **Finish**.
15. Select **Test Generation Rules**.
16. Select an option in the _Table_
17. Select the back arrow, select **Create Test**, and modify the following fields:

   - Source: ITEMLDGEROUTTOTEST
   - Choose Record: L240823901AM, and select **OK**
18. Select **OK**.
19. Select the **…** button for LOCATION’s _Test Value_ field, select the required value, and select **OK**.
20. Select the **…** button for BIN’s _Test Value_ field, select the required value, and select **OK**.

 Note: If you modify the LOCATION test value, you must modify the BIN test value (updates when the LOCATION test value is modified).

That is how you configure your fields to map to each other.

#### Check your mapped fields

1. Navigate to _Quality Inspector Fields_ in Business Central.
2. Select **Filter list by:** / **+Filter…** / Code and input “location|bin”.

The _Which Field?_Specifies “Code”. The _Any Filter?_ Field specifies the [location].
