Page MenuHomePhabricator

Optionally use HTML listboxes instead of auto-completion
Closed, ResolvedPublic


Author: sergey.chernyshev

This bug is derived from Bug 10875

Optionally allow to limit user to the set of already existing values for the field - same set of values that is used for auto-completion. But use HTML listboxes (instead of fee-form input fields) to limit user's choice.

Version: unspecified
Severity: enhancement



Event Timeline

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

Probably the best approach to this is to allow dropdowns/radiobuttons to get their values directly from the form definition, instead of from an enumeration. So you could have an input that looks like:

{{{input|country|input type=dropdown|values=Angola,Bolivia,Canada}}}

Then, once wiki-parsing of the form could be done before SF's own parsing (that's a separate "bug" on here), you could also have calls that looked like:

{{{input|country|input type=dropdown|values=<ask format=list>[[Category:Countries]]</ask>}}}

...or even use more complicated queries.

eep wrote:

And, more preferably, not just limited to Semantic MediaWiki's <ask> queries but also DPL's <dpl> queries...

Any ETA on when this might occur?

Sure, DPL too, or anything else that can generate a list of values.

Sadly, there's no ETA on any of these.

This can be done as of version 1.4, using the "values from category" parameter for field declarations.