I have the following requirement: Create asset metadata as a cq:tag and define dependency between two tags. Here are the details.
In the Metadata Schema Form Editor, I added a Standard tag from and defined the following configuration:
In the Rules tab, when I select Visible, based on new rule, the only options that I get are the ones for which I have defined the values in the metadata schema form; there is no option to select a value of cq: tag.
I can use the rules tab and define a dependency if I use a drop-down list with values defined in the Metadata schema form. However, I could not create a drop-down with cq:tags
Here is what I require –
Can you please help with pointer on how to achieve them?
Solved! Go to Solution.
Topics help categorize Community content and increase your ability to discover relevant content.
Views
Replies
Total Likes
Hi @AravindAnand ,
You want tag-based dropdowns that work with Rules tab while maintaining:
Build a custom dropdown component that combines both capabilities:
What it does:
How to build:
Invest in the custom component. One-time development effort solves all your requirements permanently.
Thanks,
Vishal
Views
Replies
Total Likes
Hi @AravindAnand ,
Please follow below steps,
Option 1: Dropdown with Hardcoded Values (Recommended - Easiest)
Option 2: Custom JavaScript
Option 3: Custom Component
Note: Out-of-box tag fields don't support Rules dependencies. You must use dropdown fields instead.
Thanks,
Vishal
Views
Replies
Total Likes
Thanks @VishalKa5 for sharing your inputs. Option 1 that you have suggested for quick implementation works; currently, I have it setup like this. However, this creates a problem of maintenance, asset search, and translation. And that is why I want to move the metadata as cq:tags for each of ease of maintenance, asset search, and managing translations.
Is there a way to pull cq:tags as dropdowns in the metadata schema form?
Views
Replies
Total Likes
Hi @AravindAnand ,
You want tag-based dropdowns that work with Rules tab while maintaining:
Build a custom dropdown component that combines both capabilities:
What it does:
How to build:
Invest in the custom component. One-time development effort solves all your requirements permanently.
Thanks,
Vishal
Views
Replies
Total Likes
Thanks @VishalKa5 for your detailed response; much appreciated. And yes, thanks for the pointers.
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies
Views
Likes
Replies