Page MenuHomePhabricator

Allow for comboboxes
Closed, ResolvedPublic

Description

Fields that autocomplete should be representable with a combobox, instead of just a standard autocompleting input - the difference is that, in a combobox, the user can also see all the available values through a dropdown. A combobox should probably be the default option, and maybe the only option, for autocompletion fields. The best Javascript library to handle this might be Ext; here's a demo for their combobox widget:

http://extjs.com/deploy/ext/examples/form/combos.html


Version: unspecified
Severity: enhancement

Details

Reference
bz11180

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 9:49 PM
bzimport set Reference to bz11180.

lleoliveirabr wrote:

Hi all. I really would like to see Combobox fields, but would like to see this with some new features.
1- For autocompleting i would like to see an additional option. We could have by category as it's already implemented and we could have by: the values already added in other articles.
Example: I go to forms and in the field Country i add USA and save the article. So next time i go to forms, in the field Country, I'll see USA value in Combobox field.
2- I would like too see check combobox too likew this example:http://www.scbr.com/docs/products/dhtmlxCombo/samples/combo_options.html

lleoliveirabr wrote:

Why i think 1 and 2 requests useful?
Request 1 = All time i want to see all values i have in specific field. So this is a very easy way to know this. Anyone knows an easier way?
A good example how this would help: I have a form called: News. In the News form i have the field "Subject" I have many articles with attribute Subject with different values like: [[Subject:=tourism]] [[Subject:=War]] [[Subject:=Iraq]] [[Subject:=Economy]]...
So if i go to Form News, in the field Subject I'll see all this values. So i can tag with existed values, and if the value i want doesn't exist i just add it. And as i told you before, the new value i add now, will appear next time in Subject combobox check field when i go to add a new data on News form again.
Request 2 = The check combobox will add an option for example to tag a news article with many subjects.

mediawiki wrote:

Folks,
Per Stephan Gambke, the developer of Semantic Form Inputs (http://www.mediawiki.org/wiki/Extension:Semantic_Forms_Inputs), comboboxes are under development (check svn trunk head).

You may want to help with the effort to get it released sooner than later.

The 'combobox' input type was finally added to Semantic Forms in version 2.0.