A dependent metadata field is a field that's tied to another metadata field. Only certain types of metadata can have dependent metadata.
You can set up parent metadata fields and child dependent metadata fields on the Metadata Types page in the Admin app of the Widen Collective. Parent fields must be dropdown fields. Dependent fields can be any type of field (checkbox, numeric, text), except for dropdown fields. Dependent fields display only if users select a specific value in parent fields.
A parent field can have multiple dependent fields. For example, a parent dropdown field could be Product Brand Name. Four corresponding child dependent fields could be Product Description, Product Type, Manufacturer, and Product Size.
If users select Graphic/Layout in the parent asset type field in the example below, a Graphic/Layout dependent field displays. If they choose something other than Graphic/Layout in the parent field, a different dependent field displays. In this case, it's Logo Type.
More information about metadata field formats is available in the "What are the metadata field options?" article.
Graphic/Layout Parent Field
One of the most common uses for dependent metadata is for licensing of assets and rights management restrictions. The parent field can indicate if licensing restrictions apply, and if "yes" is chosen, the dependent field displays to allow users to indicate the specific restrictions.
Users can refine searches by dependent metadata fields when you enable the Show Dependent Metadata Fields in Refine Search feature on the Features page. Dependent fields must be marked as "available" in the Search Filter option for a metadata type on the Metadata Types page in the Admin app to display in refined searches.
Create Dependent Metadata Fields
To create dependent metadata fields:
- Go to the Admin app.
- Click Metadata Types under Search Settings in the left navigation.
- Select a metadata type or click Edit Fields.
- Click Create Field, enter a field name, then select the dropdown list option.
- Under "Does this field have dependencies?," select "yes." You'll create values in the next step and then assign dependencies to those values.
To create list values for a metadata type:
- Click Edit by List Values.
- Enter a value and click Add. The values display as you add them; you can sort them so they display alphabetically.
- Click Done when you've added all the values.
After you're done, you'll assign previously created metadata fields as dependent fields. They'll display after the parent field on the Metadata Types page in the Admin app.
To assign dependencies, click Assign Dependencies for the values you've just created. You'll see a list of metadata fields that have been created and their dependency status. Select the fields you want as dependent fields for the values you created. For example, for the Photo value, employee name and source are dependent fields. Those will need to be completed when "Photo" is selected in the Asset Type field. If you need additional values, like Copyright/Credit, click "Not Selected." That will change to "Selected" and will be a dependent field for the Photo metadata field.