Topic on Extension talk:Semantic Forms Inputs

Sort order for "two listboxes"?

6
Lsilverman (talkcontribs)

Is it possible to force a sort of the contents of Two Listboxes? I've tried going back and changing the order of the allowed values for my property, but the sort order of the listboxes never changes. Thanks.

F.trott (talkcontribs)

I think it should be possible to do that using the plain "values" parameter (i.e. not one of the "values from..." parameters). You could try using an ask query, something like values={{#ask: ... }}. Of course you then face the problem of sorting that ask.

If you already specify allowed values with your properties the simplest solution might be to just explicitly list the allowed values by hand in your form. Or - if you have many forms - to put the list of allowed values in a template. All not very comfortable or elegant, I know.

Lsilverman (talkcontribs)

Am I correct that specifying a preferred sort order isn't supported on any of the input types?

F.trott (talkcontribs)

Yes, you are correct.

Lsilverman (talkcontribs)

How about now?

F.trott (talkcontribs)

No news and not a priority, I am afraid. If you need that feature, your best bet would be to provide a patch.

Reply to "Sort order for "two listboxes"?"