Has Anyone gotten preFill to work?

jayedgar's Avatar


07 Mar, 2011 10:56 PM

I have searched this entire forum. Drew has multiple times suggested to use the preFill, yet there is no clear documentation anywhere on how exactly to do that. Can anyone give one clear example?

Thanks in advance,


  1. 1 Posted by Alex on 26 Jul, 2011 10:28 AM

    Alex's Avatar

    +1, very actual question. As for me, I cannot make preFill work.

  2. 2 Posted by Joe Mocker on 02 Sep, 2011 06:06 PM

    Joe Mocker's Avatar

    This worked for me

    var data = {
      items: [
      {value: "21", name: "Mick Jagger", tag: "Musician"},
      {value: "43", name: "Johnny Storm", tag: "Musician"},
      {value: "46", name: "Richard Hatch", tag: "Survivor"},
      {value: "54", name: "Kelly Slater", tag: "Athlete"},
      {value: "55", name: "Rudy Hamilton", tag: "Unknown"},
      {value: "79", name: "Michael Jordan", tag: "Athlete"}
    $("#field1").autoSuggest(data.items, {
        selectedItemProp: "name", 
        searchObjProps: "name",
        asHtmlID: "values",
        preFill: [ { value: "21", name: "Mick Jagger" } ],
        neverSubmit: true
  3. 3 Posted by tobias on 04 Oct, 2011 05:14 AM

    tobias's Avatar

    Ya, profile accepts an array of objects so just wrap in square brackets

  4. 4 Posted by Tobias on 04 Oct, 2011 05:17 AM

    Tobias's Avatar

    Sorry prefill, dang auto correct

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:


Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac