Loading...
 
Features / Usability

Features / Usability


CustomSearch, clever way to filter a multiselect tracker field

posts: 8632 Israel

Hello,

In Tiki24.1 I have tracker with a multiselect checkbox field.
I want to use a customSearch with this field to filter tracker items.

There is no explicit example for this type of fields at https://doc.tiki.org/PluginCustomSearch#Creating_form_elements

I tried to adapt method and fields option (with _text and without) from the page.
If I can get the value displayed or populated any filtering fail to filter and display results.

I ended with an input filtering manually created for all the possible values.

Copy to clipboard
{input type="checkbox" _filter="content" _field="tracker_field_fuit" _value="Apple" _group="20"} Apple {input type="checkbox" _filter="content" _field="tracker_field_fuit" _value="Orange" _group="20"} Orange


This is a pain and fragile (labels change) any clever way to filter on a tracker multi-select field ?

There are no comments at this time.

Upcoming Events

1)  21 Mar 2024 18:00 GMT-0000
Tiki Roundtable Meeting
2)  25 Mar 2024 17:00 GMT-0000
29th anniversary WikiBirthday (With Ward Cunningham)
3)  18 Apr 2024 18:00 GMT-0000
Tiki Roundtable Meeting
4)  16 May 2024 18:00 GMT-0000
Tiki Roundtable Meeting
5)  20 Jun 2024 14:00 GMT-0000
Tiki Roundtable Meeting
6)  18 Jul 2024 14:00 GMT-0000
Tiki Roundtable Meeting
7)  15 Aug 2024 14:00 GMT-0000
Tiki Roundtable Meeting
8)  19 Sep 2024 14:00 GMT-0000
Tiki Roundtable Meeting
9) 
Tiki birthday
10)  17 Oct 2024 14:00 GMT-0000
Tiki Roundtable Meeting