           value = parseFloat(value).toFixed(2)
           Forms.setInputValue($input, value)
       template.formDoc = Form.getInputValues(template)
+
+    Form.setUpAutosave = (template) ->
+      template = getTemplate(template)
+      $form = Form.getElement(template)
+      schemaInputs = Form.getSchemaInputs(template)
+      # Changing dropdown fields doesn't trigger a form change.
+      _.each schemaInputs, (input, key) ->
+        $input = $(input.node)
+        return unless Forms.isDropdown($input)
+        $input.on 'change', -> $form.submit()
     
     Form.getFormTitle = ->
       collectionName = Collections.getTitle(Form.getCollection())

        if type == undefined then type = formArgs.type
        if type == undefined then type = (if doc then 'update' else 'insert')
        type
      submitText: -> if Form.getDocs().length > 0 then 'Save' else 'Create'
      hasDoc: -> Form.hasDoc()
      isBulk: -> Form.isBulk()
      autosave: -> formArgs.autosave

          hasRequiredField = true

      Form.setUpFields(@)
      Form.setUpAutosave(@)

      if hasRequiredField
        @$('.ui.form.segment').append($('<div class="footer"><div class="required"></div>Required field</div>'))
