How to set root path of tagpicker dynamically on dropdown change | Community
Skip to main content
ashisht85509954
Level 2
Apr 18, 2018 2:47 AM UTC

How to set root path of tagpicker dynamically on dropdown change

I have a requirement where i need to set root path of the tagpicker based on dropdown values. I am using AEM6.3 with sp2.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

4 replies

Hemant_arora
Level 8
Apr 18, 2018 12:27 PM UTC

Add a listener to the dropdown which updates the rootPath property let this listner call some servlet which updates the cq:tags property of jcr:content node. you can use CQ http call in classic ui and a simple ajax call for touch ui listener.

Translate
Hemant_arora
Level 8
Apr 18, 2018 6:22 AM UTC

Can you elaborate the requirement ?

Do you want the tagpicker to open a specific category of tags  or something else?

You can set rootPath property in your dialog to directly open a category of tags

Translate
Hemant_arora
Level 8
Apr 18, 2018 11:14 AM UTC

Also refer to https://forums.adobe.com/thread/2326844

you may also try overlaying /libs/cq/tagging/widgets/source/widgets/TagInputField.js

Translate