The show/hide container based on the dialog field value is available with OOTB AEM functionality. The code example in cq:dialog is something like - <showHideOptions jcr:primaryType="nt:unstructured" sling:resourceType="granite/ui/components/foundation/form/select" class="cq-dialog-dropdown-sho...