title: Meteor SimpleSchema with user dropdown
body: <p>I have an app in Meteor and the idea is that an admin user can add a document and assign it to one of its customers (customers are stored in the user collection). So I would like to present a dropdownbox with customers on the document insert view. The relevant code of the schema is below: </p>
  
  <pre><code>customer: {
      type: [String],
      label: "Customers",
      allowedValues: function () {
        return Meteor.users.find().map(function (user) {
          return user._id
        });
      },
      autoform: {
        options: function () {
          return Meteor.users.find({}).map(function(user) {
            return {
              value: user._id,
              label: user.profile.name
            }
          })
      }
    },
      optional: true
    }
  </code></pre>
  
  <p>When I put a type: String (instead of [String]) it shows the current user only in a dropdownbox. If I use [String] (as it should be), the dropdownbox actually turns in a text box (it does not have the typical dropdown behaviour) with 3 fields (for all the users it found), yet it only shows the first one again but leaves placeholders for the other 2.</p>
  
  <p>The view uses:</p>
  
  <pre><code>{{&gt; afQuickField name='customer'}}
  </code></pre>