code Workaround for Zend_Dojo_Form when you render elements individually and dijit.byId() returns 'undefined' Problem: When you render the form as a whole (i.e: <?php echo $this->form ?>), everything works fine, but when you render each element separate, the zendDijit {"id":"yourFormId","params":{"dojoType":"dijit.