---
title: "Reference a Field from an Item Card or an Item Attribute in Allowable Conditions or Pass Conditions"
app: "Quality Inspector"
section: "Set up"
last_updated: "2025-09-22"
url: "https://insight-works.com/kb/quality-inspector/reference-a-field-from-an-item-card-or-an-item-attribute-in-allowable-conditions-or-pass-conditions/"
---

# Reference a Field from an Item Card or an Item Attribute in Allowable Conditions or Pass Conditions

In Quality Inspector you can use [Item:FieldName] to reference a field on the item card, and use that in acceptable values and also pass conditions.

For example:

- [Item:Gross Weight] would lookup the gross weight from the related item for the test.
- [Item:Net Weight] would lookup the net weight from the related item for the test.
- [Item:No.] would lookup the item number from the item card.
- [Item:Description] would lookup the item description from the item card.

 Note: You can also use item attributes with a similar [Attribute:AttributeName] name. For an item with Width and Height attributes, you can use [Attribute:Width] to access the width in your condition, and [Attribute:Height] to access the height attribute in your condition.

### Reference a field from an item card or an item attribute in allowable conditions or pass conditions

 Note: You must have an item with appropriate attributes (e.g., Net Wight, Gross Weight, Depth, and Width).

Complete the following to use any attribute from an item card to create allowable conditions or pass conditions.

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

   - Code
   - Description
3. Select **Test Generation Rules**, select a rule, and select **OK**.
4. Select the back arrow.
5. Select **Add Field(s) To This Template** and select **Next**.
6. Input the description and select **Next**.
7. Modify the fields if needed.
8. Select **Finish**.
9. Input a _Pass Description_ (e.g., >[ATTRIBUTE:Width]).
10. Select **Create Test** / _Choose Record /_select the record / **OK**(Pass Description updates to match the attribute’s value on the _Item Card_).
