FormBuilder filters suggestion: text filter as select
Overview
For FormBuilder filters, it would be useful to have the option to turn Text
into Select
.
Example use-case
For a search return results like:
Org, Contact
------------
Org1, ContactA
Org1, ContactB
Org1, ContactC
Org2, ContactD
Org2, ContactE
you can add a filter on Org Display Name which is displayed as a text box.
It would be nice to be able to present this as a Select
dropdown of 'Org1', 'Org2' etc (or even multi-select). The configuration for the filter provides a Type
box with several options, so add a Select
one to that (in addition to the existing Text
).
The current text filter is a substring match which means that if one display name is a substring of another, you can't filter to just the shorter name. So eg 'Org1', 'Org1 - committee A', 'Org1 - committee B' you can't just show 'Org1'. Turning this into a Select
should either exact match on the text string or convert to filtering by id
.