title: Fetch the value of a dropdown widget on dialog load in CQ5 using ExtJS
body: <p>I have a dialog box with a dropdown (name="number", xtype="selection") widget in a tab. While loading the dialog, I need to fetch the value in this dropdown to display/hide another tab.</p>
  
  <p>Both the tabs are in the same dialog (xtype="tabpanel")</p>
  
  <p>I tried adding a ExtJS code as a 'listener' in the 2nd tab (which needs to be hidden/displayed) but it didn't work:</p>
  
  <pre><code>&lt;listeners
                  jcr:primaryType="nt:unstructured"
                  render="function() {alert(this.findParentByType('tabpanel').getFieldValues('number')); }"/&gt;
  </code></pre>