About hideing xtpye tag in dialog based on condition | Community
Skip to main content
Level 3
October 16, 2015
Solved

About hideing xtpye tag in dialog based on condition

  • October 16, 2015
  • 1 reply
  • 498 views

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.
This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Sham_HC

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

1 reply

Sham_HC
Sham_HCAccepted solution
Level 10
October 16, 2015

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