         $input = Forms.getFieldElement(key, $form)
         Forms.setInputValue($input, value)
 
-    Form.getBulkValues = (template) ->
+    Form.getBulkValues = (template, docs) ->
       values = {}
       template = getTemplate(template)
-      docs = Form.getDocs(template)
+      docs ?= Form.getDocs(template)
       otherDocs = docs.slice(1)
       getValue = (doc, key) -> Objects.getModifierProperty(doc, key)
       # Populate all form fields with any common values across docs if possible.

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


        Collections.observe collection,
          changed: (doc) ->
            return unless docHasChanged(doc)
            result = confirm('The ' + singularName + ' being edited by this form has been
                modified. Do you want to merge changes?')
            if result then Form.mergeLatestDoc(template)
          deleted: (doc) ->
            return unless docHasChanged(doc)
            alert('The ' + singularName + ' being edited by this form has been removed.')
            # TODO(aramk) Change the form to insert.

    ################################################################################################
