With AEM 6.4 Assets, you can display specific metadata fields/field values based on what a user previously selects in the properties page for an asset.
The conditional display of metadata is called cascading metadata. Essentially, you can create a dependency between a particular metadata field/value and one or more fields and/or their values.
Use metadata schemas to define rules for displaying cascading metadata. For example, if your metadata schema includes an asset type field, you can define a pertinent set of fields to be displayed based on the type of asset a user selects.
Here are some use cases for which you can define cascading metadata:
- Where user location is required, display relevant city names based on the user's choice of country and state.
- Load pertinent brand names in a list based on the user's choice of product category.
- Toggle the visibility of a particular field based on the value specified in another field. For example, display separate shipping address fields if the user wants the shipment delivered at a different address.
- Designate a field as mandatory based on the value specified in another field.
- Change options displayed for a particular field based on the value specified in another field.
- Set the default metadata value in a particular field based on the value specified in another field.
Consider a scenario where you want to display cascading metadata based on the type of asset that is selected. For example, if a video asset is selected, you want to display applicable fields such as format, codec, duration, and so on. In contrast, if you choose a Word or PDF document as the asset type, you want to display fields, such as page count, author, and so on. Irrespective of the asset type chosen, you want copyright information to be displayed as a required field.