       _.each values, (value, key) ->
         $input = Forms.getFieldElement(key, $form)
         Forms.setInputValue($input, value)
+      Form.setUpFields(template)
 
     Form.getBulkValues = (template, docs) ->
       values = {}

        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)
      docs = Form.getDocs()

        else
          doc

    Form.setUpFields = (template) ->
      template = getTemplate(template)
      schemaInputs = Form.getSchemaInputs(template)
      _.each schemaInputs, (input, key) ->
        # Round float fields to 2 decimal places.
        $input = $(input.node)
        field = input.field
        if field.type == Number && field.decimal && formArgs.roundFloats != false
          decimals = field.decimals ? 2
          value = Forms.getInputValue($input)
          value = parseFloat(value).toFixed(2)
          Forms.setInputValue($input, value)

    Form.getFormTitle = ->
      collectionName = Collections.getTitle(Form.getCollection())
      singularName = Form.getSingularName()
