     if @el.data('add')
       @initCreateChoiceOnce()
       @initCreateChoice()
+    if @el.data('create-search-choice')
+      @options.createSearchChoice = (term) ->
+        log 'createSearchChoice'
+        {id: term, text: term}
     @options
 
   runModal: ->

    if @el.data('tags')
      @options.tokenSeparators = [',']
      @options.tags = @el.data('tags')
    else if @el.data('collection')
      @options.data = @el.data('collection')
    else if @el.data('class')

      placeholder: ' '
      allowClear: true
      escapeMarkup: (m) -> m
    opts.minimumResultsForSearch = 10 unless fv.test || @el.data('add') || @el.data('create-search-choice')
    opts

  initAjaxInput: ->
