Steps for Creating Dependent Dropdown Lists

This example describes the steps for creating dependent dropdown lists for the shirt style scenario described in Dependent Dropdown Lists Example. For this example, the available shirt style selections depend on what is entered for the shirt size and shirt color.

Complete the following steps:

  1. Creating the Custom Lists and Custom Record Type

  2. Creating Custom Transaction Line Fields and Setting up Filtering

Creating the Custom Lists and Custom Record Type

Before you can create the custom fields, you must first create the custom lists that will be used in those fields. In this example, you need custom lists for Shirt Size and Shirt Color. Then you create the custom record type for Shirt Style. You use these custom lists and the Shirt Style custom record when you create the custom transaction line fields.

To create the custom lists and custom record type:

  1. Create a custom list named Shirt Color that includes the colors black and white. Then create a custom list named Shirt Size that includes the sizes small and large.

  2. Create a custom record type named Shirt Style with two fields: Shirt Size and Shirt Color. For these fields, set the Type to List/Record and then, in the List/Record field, enter the corresponding list from the previous step.

    The following screenshot shows the Shirt Style custom record type with the Shirt Color and Shirt Size fields that reference the custom lists:

    Fields subtab showing fields for shirt color and size to be used in dropdown selection.
  3. After you save the Shirt Style custom record type, create a custom record instance for each Shirt Style combination. Name these custom record instances as follows:

    • large, black, crew

    • small, black, crew

    • large, white, crew

    • small, white, crew

    • large, white, v–neck

    • small, white, v–neck

The following screenshot shows the shirt style combinations created for the Shirt Style custom record type:

Shirt Style List page

Creating Custom Transaction Line Fields and Setting up Filtering

Next you create the custom fields using the Shirt Color and Shirt Size custom lists and the Shirt Style custom record type. In this example, you need to create three custom transaction line fields: Shirt Color, Shirt Size, and Shirt Style. On the Shirt Style custom field, you configure how the fields are filtered. These custom fields are used on the transaction or record instance.

To create custom transaction line fields and set up filtering:

  1. Create a custom transaction line field for each controlling field:

    • Shirt Color — Of type List/Record with your shirt color custom list selected in the List/Record field

    • Shirt Size — Of type List/Record with your shirt size custom list selected in the List/Record field

  2. For the dependent Shirt Style field, create the same type of List/Record custom transaction line field that you created for the controlling fields.

    In the List/Record field, select the Shirt Style custom record type.

  3. On the Shirt Style custom field configuration, click the Sourcing & Filtering subtab. Complete the following:

    1. In the Filter Using column, select Shirt Color, which represents the field on your custom record that references the Shirt Color custom field.

    2. In the Compare Type field, select equal.

    3. In the Compare To field, select Shirt Color.

    4. Repeat these steps for the Shirt Size field.

      Sourcing & Filtering subtab for shirt color and shirt size.
    5. Click Save.

Now, the Shirt Style field is filtered by the selections in the Shirt Size and Shirt Color fields.

Sample Shirt Style dropdown selection for Shirt Style custom field.

Related Topics

General Notices