[Chosen] Add new Entry

[Chosen] Add new Entry

  
Forge Component
(18)
Published on 2012-01-23 by Miguel "Kelter" Antunes
18 votes
Published on 2012-01-23 by Miguel "Kelter" Antunes
Is it also possible to let the user add a new entry?

Matthias -

Sure, just add the value to the Record List that is bound to the drop down (ListInsert, ListAppend, or write it to the DB and refresh the query that populates the drop down), use an Ajax Refresh on the drop down, and use the Chosen Refresh methods to re-bind it to the drop down.

J.Ja
I meant that, the user gets an option to add a item when he types something that is not in the list. 

As described here
Matthias -

Yes, you can do it, but not with this component as published here. You'll need to roll your own version. This component has no awareness of the underlying data, so it would not be able to add to the list, store it to the DB, etc.

J.Ja