Expand my Community achievements bar.

SOLVED

About hideing xtpye tag in dialog based on condition

Avatar

Level 3

Hi ,

 
I have an added an xtype as tag in dialog. My requirement is that it must show up this field only if the dialog only if the URL  is having a required  content path.Please let me know how I can achieve it ,if not it must not be visible in dialog.
 
The tag details that I have added in the dialog is mentioned below
 
<tagvalue
                    jcr:primaryType="cq:Widget"
                    fieldLabel="tag filed "
                    name="./tagname"
                    namespaces="[xxx]"
                    xtype="tags"/>
 
 
Thanks.
1 Accepted Solution

Avatar

Correct answer by
Level 10

Build a javascript function that hides it. Then make use of listner to call your function. Some thing like

http://stackoverflow.com/questions/22847446/toggling-the-visibility-of-a-group-of-fields-in-a-dialog

View solution in original post

1 Reply

Avatar

Correct answer by
Level 10

Build a javascript function that hides it. Then make use of listner to call your function. Some thing like

http://stackoverflow.com/questions/22847446/toggling-the-visibility-of-a-group-of-fields-in-a-dialog