       @settings = @data.settings ? {}
       @docs = Form.parseDocs()
       @data.doc = Form.getValues()
+      @isSubmitting = false
       formArgs.onCreate?.apply(@, arguments)
 
     Form.rendered = ->

        onError?.apply(@, args)
        throw new Error(error)

      beginSubmit: (formId, template) -> Form.setSubmitButtonDisabled(true, template)

      endSubmit: (formId, template) -> Form.setSubmitButtonDisabled(false, template)

    if formArgs.hooks?
      AutoForm.addHooks name, formArgs.hooks

        field.optional = true
      new SimpleSchema(schemaArgs)

    # Form.setUpBulkFields = (template) ->
    #   template = getTemplate(template)
    #   values = Form.getBulkValues()
    #   schemaInputs = Form.getSchemaInputs(template)
    #   _.each schemaInputs, (input, key) ->
    #     $input = $(input.node)
    #     value = Objects.getModifierProperty(values, key)
    #     if Setter.isDefined(value)
    #       placeholder = ''
    #     else

    #     $input.attr('placeholder', placeholder)

    Form.getSampleValues = (paramId, template) ->
      template = getTemplate(template)
