         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()

        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()

          # are.
          if Forms.setInputValue($input, value)
            mergedValues[key] = value
      Form.setUpFields(template)
      mergedValues

    Form.getInputValues = (template) ->
