           return null
       singular.toLowerCase()
 
+    Form.whenLoaded = (template) -> getTemplate(template).loadDf.promise
+
     # Return the Form to be used as a Template.
     return Form
 

          $form.submit()
      origRendered?.apply(@, arguments)

      schemaInputs = Form.getSchemaInputs(@)

      popupInputs = []
      hasRequiredField = false
      _.each schemaInputs, (input, key) ->

      Form.setUpDocs(@)
      if Form.isReactive() then Form.setUpReactivity()
      @isSubmitting = false
      @loadDf = Q.defer()
      formArgs.onCreate?.apply(@, arguments)
      origCreated?.apply(@, arguments)

