title: Conditional fields in Liferay Web Content editor
body: <p>We have a requirement for creating a banner for which we plan to use <em>Web Content Display</em>.</p>
  
  <p>As part of the implementation I have created a structure with the required fields like link-type (drop-down), etc and using corresponding template.</p>
  
  <p>I wish to make a conditional check based on the type of selection in the link-type and show <code>link-to-page</code> or <code>text-box</code>.</p>
  
  <p>I observed that there is no option to have a conditional check in the article editor rendering. </p>
  
  <p>Thus I wish to check whether there is any hack or trick that we can do to achieve the above conditional thing? 
  Also, can we inject custom Javascript to achieve this as part of the structure?</p>